Project

General

Profile

Python Debug

It is possible to use a Python debugger with SocExplorer, to do so you need to install winpdb (packaged on fedora).

  • First you have to start the server from SocExplorer python console, you just need to type:
    
    import rpdb2; rpdb2.start_embedded_debugger('some password')
    
      


SocExplorerPlot rpdb2 start

  • Then you have to start winpdb, and connect it to your running rpdb2 server (File->Attach):

Winpdb attach

Note that you have to provide the same password than used to start the server!
You should get a list of running sessions like this:

Winpdb sessions list

And once connected, you should get this:

Winpdb connected

  • Now if you want to add some breakpoints you need to open the python file from winpdb(File->Open Source) and set them:

Winpdb with some breakpoints

Note that you need to click on the arrow to start debugging but SocExplorer will not evaluate the python file, you need to execute by dragging your file in the SocExplorer Python console, then have some fun!

Also available in: PDF HTML TXT