Are there any debugger IDEs for python nodes when roslaunch them

asked 2014-04-11 13:33:27 -0500

scopus gravatar image

updated 2016-10-24 08:36:49 -0500

ngrennan gravatar image

Hi, we are trying to establish a multi-robot system. Firstly, we learned [ROCON]. The ROCON is a big Python project. The key question is how to debug one of packages from ROCON in Eclipse when launch it by using roslaunch. I have tried by this way:to debug a node, I removed it from the launch file, run the launch-file in a separated terminal which roslaunch many other essential(premises) nodes, and then debug the target node/package. However, there are 'arg', ' remap', 'param" when roslaunch a package/node, I didn't know how to set them when debugging a node/packages in eclipse.

I also learned roslaunch in PDB for python, However, [PDB] for python is not so user-friendly like eclipse. Especially for distributed masters in a multi-robot system, debugging with information interactions among multiple masters is intractable. Any guidance is appreciated. Thank you very much!

edit retag flag offensive close merge delete


I use winpdb when i debug my python nodes... its basically a gui version of pdb. You run it from the terminal just like pdb

Sentinal_Bias gravatar image Sentinal_Bias  ( 2014-04-12 22:34:59 -0500 )edit

Thank you for your reply. Do you use winpdb to debug a python node when roslaunch it by adding "launch-prefix="winpdp -e python -m pdb"? or you debug a python node by independently launching it. Could you debug any python nodes in a roslaunch files by using winpdb at any time?

scopus gravatar image scopus  ( 2014-04-13 05:41:19 -0500 )edit

hi, I added "launch-prefix="winpdp -e python -m pdb" in a .launch file, then I roslaunch it and successfully launch winpdb.However, it only launched the winpdb and a terminal whose current directory is at ~/.ros. The console window in winpdb say:" Starting debuggee.... “ and then " Failed to find script". Other windows in winpdb like source, namespace, threads and stack are empty. Please tell me how to continue , thank you!

scopus gravatar image scopus  ( 2014-04-13 15:53:09 -0500 )edit