Hello
In fact the Launch Configuration is linked with a project and an executable file.
In order to be make it easier to associate a Launch configuration with a build configuration I would recommend
to associate a different executable to your build configuration.
- Open the Project Properties dialog (Select Project > Properties)
- Go to C/C++ Build > Settings page.
- Change to the Build Artifact tab
- Change the Artifact name.
Now to associate the new launch configuration with the executable generated by your new build configuration:
- Build the application
- Select Run > Debug Configurations.
- Select the launch configuration on the left hand side of the dialog.
- Go to Main tab.
- Make sure Project points to the correct project
- Click on Search Project button next to the Application edit box.
- You should see the name of the executable you have specified earlier. Select it and click OK.
- Click on Apply to apply the changes.
- Click on debug to start debugging of the specified executable.
Two additional notes;
1- Make sure you have read/write access to the location of the .launch file.
2- In order to start the launch configuration for a specific build configuration, use the Debug Configurations dialog or
click on the arrow next to the green bug tool bar icon to select a previously used launch config.
If you just click on the green bug icon, you will start the last launch config you have used.
CrasyCat