Recent

This Page

User

Error while launching command: gdb --version

When using the Code Red IDE version 5 you may receive the following error when starting a debug session

Error while launching command: gdb --version

Cause

This is caused by selecting the wrong type of Launch (Debug) configuration. If you use the Quickstart Debug button, the correct configuration is automatically chosen. However, if you are creating your own configuration you MUST use C/C++ (Code Red) MCU Application.

How to fix

First, you must delete the existing Launch configuration. You can do this in one of two ways

Right-click on the project in the Project Explorer and select Launch Configurations->Delete Current; OR

Open the Debug Configurations dialog and delete from within there:

Right-click on the project in the Project Explorer and select Launch Configurations->Edit Current

Find the configuration(s) for you project and delete them by selecting them and pressing the red X in the toolbar

Next, create a new Launch configuration. The recommended way of creating a Launch configuration is to select the project in Project Explorer and press the Debug button in the Quickstart panel.

For Advanced users, you can create your own Launch configuration in the Debug Configurations dialog and create a new configuration using the C/C++ (Code Red) MCU Application type. But generally, there is no need to do it this way, and you should use the Quickstart Debug button.