-
Notifications
You must be signed in to change notification settings - Fork 19
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
Better defaults for "debug project" #153
Comments
That said - these issues might all be my fault in that a) I already had a CMake/Cortex Debug configuration setup and b) I'm actually using a custom board type, in a |
To set the de-optimised debug flags, you can use I think we could add the automatic switch to Debug builds when using Cortex-Debug, vs release builds when you click Run - it would just require checking the build type and possibly running a CMake Configure whenever you switch between Cortex-Debug and Run. |
Good to know about that flag. I like the idea of switching to Debug builds automatically... but understand that there are good reasons to make that switch manual / use a debugger with a Release build. It's just it turns out a lot of the functionality of the debugger for me was actually specific to deoptimized code. I'm not sure what the right answer is here, hence being discursive; I do know that the Debug Probe is an excellent thing, and helping more users use it more easily is a win for everybody, so I'll keep seeing how I get on here. Thanks for your patience with me! |
I've added a |
I'm on the same boat here. I want Cmake to have a Debug configuration when debugging, so that I can add compile flags like |
Not a bug, but a suggestion / feature request:
Release
; it'd be nice if when you chose to Debug a project, it compiled inDebug
mode (which I'm not sure it does).-g -O0
were added; as it is, when I debug a project, the debugger works... but all my variables are optimized out and it's very hard to track anything.My knowledge of Cortex Debug is... thin, but I've had it working on previous RP2040 projects, and in general I'm a huge fan of making this stuff available to end users.
As it is, I have these lines in my
CmakeLists.txt
:and I comment out the first for release building.
The text was updated successfully, but these errors were encountered: