Creating New Eclipse Debug Configuration

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:

New Debug Configuration with New Icon

New Debug Configuration with New Icon

An easer, but not so obvious way is to double-click on the line item:

Double Click to Create New Launch Configuration

Double Click to Create New Launch Configuration

💡 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 🙂

 

2 thoughts on “Creating New Eclipse Debug Configuration

  1. 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.

    Like

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.