Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug not working in some places #52

Open
sacredbanana opened this issue Oct 19, 2020 · 2 comments
Open

Debug not working in some places #52

sacredbanana opened this issue Oct 19, 2020 · 2 comments

Comments

@sacredbanana
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants