2024-07-26 12:48 AM
Currently the behaviour of CubeIDE is to always choose the same build configuration for the Run and Debug button.
Is there a way to have the two seperated? Most of the time I want to flash the Debug build for debugging and the Release build with stronger optimizations when clicking Run.
It got me confused quite some times already, why the current consumption of the target is so incredible high after flashing code with "Run", until I remembered that I had a debugging session before and now the build config for the "Run" button was changed to Debug config...
So, is there a way to have the two buttons not change build config simultaneously but keep them separate?
2024-08-02 08:01 AM
Hello @A.D.
To separate the build configurations for the "Run" and "Debug" buttons, you can follow these steps below:
For the "Run" button:
For the "Debug" button:
I hope these steps help you.
Thank you.
Best regards,
ELABI.1
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-08-06 05:39 AM
This is what I already did, but when I set the "Debug" configuration, the "Run" configuration is changed as well!
So I have to change the settings continuously back and forth - I configure Run to "Release build" and press run, then debug is also changed... Next time I configure the Debug button to "Debug build" and press debug, then the config for the run button is changed!