BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
314 stars 39 forks source link

Debug not working in some places #52

Open sacredbanana opened 3 years ago

sacredbanana commented 3 years ago

I'm unable to debug for some regions of my code for some reason. The breakpoints completely get ignored and for earlier breakpoints that work, it is also unable to step into functions where my broken breakpoints reside. The code executes fine but debugging is broken for some reason.

rjobling commented 3 years ago

This is probably because of the compiler optimizations. In the makefile CCFLAGS includes -Ofast, you can change this is -Og for a better debugging experience. You will need to delete all the obj files each time you make changes like this to the makefile.

I can understand why this isn't a priority to simplify and I'm not sure what VSCode provides, but it would be nice if this were part of a separate config of some kind so it's easier to toggle between debug and optimized compilation.

davidcanadas commented 2 years ago

I have a fork that supports multiple targets included debug, release and so. Maybe I can pull request this?