Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Run / Debug configuration
Run / Debug configuration [message #1603940] Fri, 06 February 2015 09:17 Go to next message
Eclipse UserFriend
Hi,

I have a Release and a Debug configuration in my project. When I run my application, I want to start the Release build. For debug I want to start the Debug build.

I set the configuration to Release and the Release was build. Then I set the configuration to Debug and the Debug was build. But when I try to debug my application, the Release is started. So I changed the debug configuration to Debug. Next I tried to run the Release, but the Debug was started. So I changed the run configuration to Release. I saw, that I can only change both configurations concurrently. Is there a way to change the path of the application by only change the active configuration?

Regards

[Updated on: Fri, 06 February 2015 09:17] by Moderator

Re: Run / Debug configuration [message #1725050 is a reply to message #1603940] Mon, 29 February 2016 06:05 Go to previous messageGo to next message
Eclipse UserFriend
I'm looking for an answer to this exactly...

There has to be an easier way than having to select the debug configuration to debug and the run configuration to run, every time.

To put it another way, the run history is the same history as the debug history, rather than separate...

Can anyone help?
Re: Run / Debug configuration [message #1725085 is a reply to message #1725050] Mon, 29 February 2016 10:31 Go to previous messageGo to next message
Eclipse UserFriend
There is only one launch configuration which is used for both debugging and running. So, whatever the last program configuration chosen will be the one used. If you want something different, you should submit a change request.

FWIW: I've never seen much advantage to running a program from within an IDE anyway except to see that it actually runs. The debug information inserted by the GNU tool chain is non-intrusive so I usually leave it in even for production code.. If you have a real difference between Debug and Release then they are different programs. What's the point of debugging program A then guessing how it applies to B?

Re: Run / Debug configuration [message #1725119 is a reply to message #1725085] Mon, 29 February 2016 19:17 Go to previous message
Eclipse UserFriend
Well, I do have one project where the debug/profiling code overhead is significant enough that I don't want it running unless I'm debugging. I suppose I could make a debug-light build though, for general testing.
Previous Topic:Problems with ARM debugging
Next Topic:Help in setting up remote debugging on ARM Linux
Goto Forum:
  


Current Time: Mon Jul 14 07:53:24 EDT 2025

Powered by FUDForum. Page generated in 0.05680 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top