ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Debugging a rqt plugin in PyCharm

asked 2016-11-16 05:07:01 -0500

ce_guy gravatar image

updated 2016-11-16 05:08:20 -0500

Hey guys,

I am developing a rqt plugin in Python at the moment and I am using the recommended IDE PyCharm.

When I get errors I always try to debug with print messages.

I am wondering is there a good debugging solution to debug a rqt plugin in PyCharm?

Thank you very much in advance!

Best regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-02-09 09:18:42 -0500

ce_guy gravatar image

updated 2017-02-09 09:19:46 -0500

I realized now that I can debug my plugins by using the "Attach to Local Process" function (you can find it under "Run") and attach it to the rqt process. I had to change the ptrace settings to make it work by:

$ sudo su -

$ echo 0 > /proc/sys/kernel/yama/ptrace_scope

found here: http://blog.mellenthin.de/archives/20...

Maybe it'll help someone.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-16 05:07:01 -0500

Seen: 779 times

Last updated: Feb 09 '17