Open sacredbanana opened 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.
I have a fork that supports multiple targets included debug, release and so. Maybe I can pull request this?
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.