Ask Your Question

Revision history [back]

Hello guys,

I've suffered from the same problem until discovering a pretty clear way to do it. First, we have to configure the project "build" and "run" parameters that can be accessed through the section "Projects" in the right sidebar.

"Projects" section

After access the "Projects" section, we need to set up all parameters related to the build process as the following steps:

1) Remove the current catkin_make configuration (this configuration is just an execution of the conventional process that we are already used to). To remove it just hover your arrow near "Details", hence an "X" will appear.

remove catkin_make

2) After removing the current build step configuration, click on "Add build step" and choose the option "Custom Process Step" and fill the blanks according to your workspace environment.

image description

Above I filled in the blanks considering the tips I found here and my workspace build directory location (in order to have it already done at this step you have to run the "catkin_make" command at least once before it).

Moreover, the arguments that I used were:

../src -DCMAKE_INSTALL_PREFIX=../install -DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_BUILD_TYPE=Debug.

Notice that the -DCMAKE_BUILD_TYPE=Debug CMake argument is used aiming to allow us to attach to the ROS application in runtime.

3) Now, you should be able to build your project. To accomplish it easier we can type ctrl+b to build and afterwards alt+4 to keep up with the compilation.

Now, in order to perform the debug just pressing F5 we need to configure the "run" section of the IDE. For it, follow the next steps:

1) On the "Project" section select the "run" tab.

image description

2) Click on "Add" and then on "Custom Executable".

image description

3) Now, add the path to your ROS executable that probably is placed in your_workspace/devel/lib/your_package_name and the path to your build directory as well.

image description

Congratulations!!

Now you must be able to set up your breakpoints and press F5 to debug your ROS application.

Please, if it was useful for anyone or if you still have a remaining doubt, please let me know that.

Best regards for all.

Hello guys,

I've suffered from the same problem until discovering a pretty clear way to do it. First, we have to configure the project "build" and "run" parameters that can be accessed through the section "Projects" in the right sidebar.

"Projects" section

After access the "Projects" section, we need to set up all parameters related to the build process as the following steps:

1) Remove the current catkin_make configuration (this configuration is just an execution of the conventional process that we are already used to). To remove it just hover your arrow near "Details", hence an "X" will appear.

remove catkin_make

2) After removing the current build step configuration, click on "Add build step" and choose the option "Custom Process Step" and fill the blanks according to your workspace environment.

image description

Above I filled in the blanks considering the tips I found here and my workspace build directory location (in order to have it already done at this step you have to run the "catkin_make" command at least once before it).it). In my case, my build directory is located at /home/matheus/rosworks/build.

Moreover, the arguments that I used were:

../src -DCMAKE_INSTALL_PREFIX=../install -DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_BUILD_TYPE=Debug.

Notice that the -DCMAKE_BUILD_TYPE=Debug CMake argument is used aiming to allow us to attach to the ROS application in runtime.

3) 4) Once the MakeFile is generated by the CMake, we are able to run the make command, to achieve it we must add other "Custom Process Step".

image description

Above, the argument ''-j12" specifies the number of process to run simultaneously.

If an application requires an install step, other "Custom Process Step" with a make command and install as argument can be added.

5) Now, you should be able to build your project. To accomplish it easier we can type ctrl+b to build and afterwards alt+4 to keep up with the compilation.

Now, in order to perform the debug just pressing F5 we need to configure the "run" section of the IDE. For it, follow the next steps:

1) On the "Project" section select the "run" tab.

image description

2) Click on "Add" and then on "Custom Executable".

image description

3) Now, add the path to your ROS executable that probably is placed in your_workspace/devel/lib/your_package_name and the path to your build directory as well.

image description

Congratulations!!

Now you must be able to set up your breakpoints and press F5 to debug your ROS application.

Please, if it was useful for anyone or if you still have a remaining doubt, please let me know that.

Best regards for all.

all.

Hello guys,

I've suffered from the same problem until discovering a pretty clear way to do it. First, we have to configure the project "build" and "run" parameters that can be accessed through the section "Projects" in the right sidebar.

"Projects" section

After access the "Projects" section, we need to set up all parameters related to the build process as the following steps:

1) Remove the current catkin_make configuration (this configuration is just an execution of the conventional process that we are already used to). To remove it just hover your arrow near "Details", hence an "X" will appear.

remove catkin_make

2) After removing the current build step configuration, click on "Add build step" and choose the option "Custom Process Step" and fill the blanks according to your workspace environment.

image description

Above I filled in the blanks considering the tips I found here and my workspace build directory location (in order to have it already done at this step you have to run the "catkin_make" command at least once before it). In my case, my build directory is located at /home/matheus/rosworks/build.

Moreover, the arguments that I used were:

../src -DCMAKE_INSTALL_PREFIX=../install -DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_BUILD_TYPE=Debug.

Notice that the -DCMAKE_BUILD_TYPE=Debug CMake argument is used aiming to allow us to attach to the ROS application in runtime.

4) Once the MakeFile is generated by the CMake, we are able to run the make command, to achieve it we must add other "Custom Process Step".

image description

Above, the argument ''-j12" specifies the number of process to run simultaneously.

If an application requires an install step, other "Custom Process Step" with a make command and install as argument can be added.

5) Now, you should be able to build your project. To accomplish it easier we can type ctrl+b to build and afterwards alt+4 to keep up with the compilation.

Now, in order to perform the debug just pressing F5 we need to configure the "run" section of the IDE. For it, follow the next steps:

1) On the "Project" section select the "run" tab.

image description

2) Click on "Add" and then on "Custom Executable".

image description

3) Now, add the path to your ROS executable that probably is placed in your_workspace/devel/lib/your_package_name and the path to your build directory as well.

image description

Congratulations!!

Now you must be able to set up your breakpoints and press F5 to debug your ROS application.

Please, if it was useful for anyone or if you still have a remaining doubt, please let me know that.

Best regards for all.