morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
357 stars 156 forks source link

[Q&A] How to develop functionaltiy in MORSE? #801

Open dgerod opened 6 years ago

dgerod commented 6 years ago

Hi all,

I have a very basic question :-|

When you are developing some internal parts of MORSE, how you check the behavior in execution? Are you using a debugger or you are writing traces in the code? I have tried to use PyCharm to debug the code but I don't know how to do it.

At this moment for debugging MORSE I add the following lines in a internal file (e.g. sensor):

import pdb
pdb.set_trace()

And I launch my simulation using morse start XXXXXXXX. But this means that I have to debug the code in the terminal. Usefull improvements that enhancement pdb are pdb++ and pudb

In addition, could you explain how you typically develop internal code of MORSE?

Thanks in advance.

Kind regards, -- Diego