im at the point where I feel I should ask ,,
what is a debugger ?
and how do u use one?
hit a wall on my project and use the down time to research other areas of interest..
how do i use a debugger ,
Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team
how do i use a debugger ,
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Re: how do i use a debugger ,
A debugger is a program that let you inspect the status of the program you want to debug. You can step through the code line by line, and watch the variables and data changing. You can define breakpoints in your code, i.e. points in your code where execution is halted and control is handed over to the debugger so you can inspect the state of variables and data, and either abort the program, continue running it or stepping through it line by line from the breakpoint.charles wrote:what is a debugger ?
Most debuggers for TOS works at the assembler level, you don't see your actual source code but the assembler code generated by the compiler. But there are source-level debuggers too, the best I have used on TOS is the PureC debugger. It lets you inspect the code both at the source level and at the assembler level, even at the same time. It's been a long time since I used any Pascal compiler but IIRC Pure Pascal has a similar debugger.
Source level debuggers are infinitely more useful than low level debuggers when using high-level languages, and the Pure debugger is the main reason why I mostly use PureC when programming on my Ataris.
Jo Even
VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
Re: how do i use a debugger ,
good explaination .. I knew it behaved very much in the manner described.
im still a novice coder so code is just code to me , however learning and making good understanding of these items should be beneficial..(sooner or later)
currentily I have one line of problematic code I need to inspect further....
afraid my knowledge isn't vast enough to find the trouble...
does an interrupt affect the stack in anyway ?
im still a novice coder so code is just code to me , however learning and making good understanding of these items should be beneficial..(sooner or later)
currentily I have one line of problematic code I need to inspect further....
afraid my knowledge isn't vast enough to find the trouble...
does an interrupt affect the stack in anyway ?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!