Eclipse is very powerful. To the point that you can do the same thing in multiple ways. I’m always learning new things, and recently I discovered a new way how to create a new launch or debug configuration.
So far I selected the item (e.g. GDB Hardware Debugging) and used the ‘New’ Icon:
An easer, but not so obvious way is to double-click on the line item:
💡 Tip: select the project first in the project explorer before opening the launch/debug configuration dialog. That way if I create a new configuration, it automatically populates the executable file and information for that project.
As easy as that 😉
Happy Creating 🙂
Good to know, especially since this works with any debug launcher, including J-Link and OpenOCD.
One additional note: if you want Eclipse to automatically fill in the path to the executable in the Main tab, generally you need to have it selected in the Project Explorer when starting the Debug Configurations window. If you happen to have only one configuration built (Debug in your case), Eclipse assumes this is the executable you want to debug, but as soon as you build the Release configuration too, this will no longer work and Eclipse will leave that field empty if you do not manually select the executable you want to debug.
LikeLike
Yes, good point. I usually select first the project. I have this added to the post. Multumesc!
LikeLike