MorphOS Developer
Posts: 165 from 2003/3/17
Quote:
tolkien wrote:
Im trying the new source line debugger but dont understand a few things and there is no documentation.
[ Editado por tolkien 29.03.2018 - 20:33 ]
Hi,
Thanks for the encouraging words.It's absolutely true that documentation is severely lacking. It's a pity because there are probably many features that only I know about myself. Problem is that I don't have time or motivation to work on proper documentation (even though I keep telling myself I should). I prefer to code on my spare time.
The debugger is still work in progress and there are many things missing or not fully implemented. Hopefully this will improve over time. As you spotted, proper trace functionality is missing so for now you indeed have to mark set breakpoints (btw, those can be conditional if you want. Use the rmb popup for that).
There's an issue with global variables and they indeed don't show correct values. We didn't have the time to fix this before release.
However, local variables should definitely work. One thing you should be careful about is gcc's optimization options. The DEBUG target uses -Og by default, which I recently discovered to be a bad idea. Better change to -O0 when working with the debugger. This will be the default in the next release. Let me know if that helps or otherwise give me a hint of what kind of code you are testing with.
/Nicholai