Piggybacking off of GwynneR's post! PyCharm
PyCharm is a Python IDE by JetBrains, and is available from their site here: JetBrain's PyCharm
This walkthrough pertains to Python Scripts, I haven't tackled 701's Python Plugin authoring just yet.Video Using PyCharm's Debugger with Modo 701Setting up Pycharm for Modo
After installing PyCharm, you will need to create a Remote Debugger profile for Modo. Follow these steps to do that.
1) On PyCharm's top bar, select Run
and choose Edit Configurations
2) Press the green + in the top left hand corner and choose Python Remote Debug
3) In the following window, name the configuration (Modo 701 for example) and make sure these options are set.
· Enabled: Single instance only
· Enabled: Redirect output to console (This will print Modo's Python output inside PyCharm's output window)
· Disabled: Suspend after connect (If this option is enabled, PyCharm will interrupt modo as soon as it makes the initial connection to PyCharm's debugger, not terribly useful in our situation. )Copying PyCharm's Debugger Asset in to Modo's Scripts Directory
After you install PyCharm, its Debugger python assets are stored inside its installation directory. To make things easier, lets copy these in to Modo's script directory.
Browse to this location:
C:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\
And copy this folder:
In Modo, on the top menu bar choose System->Open User Scripts Folder. Paste the
folder in to this directory.
In my case, this directory is:
C:\Users\nstevenson\AppData\Roaming\Luxology\ScriptsConnecting Modo to PyCharm's Listener
After you have configured PyCharm with a Modo debug profile and copied PyCharm's debugger modfules in to Modo's scripts location, you can now connect Modo and PyCharm together.
To start the debug listener, on PyCharm's top menu bar, choose Run and then select Debug Modo 701. Alternatively, you can click the green bug icon on the middle of the main menu bar.
The bottom section of PyCharm will expand and you should see that PyCharm is now listening for a connection.With PyCharm Listening...
From inside Modo, open up a Command History
panel and using the grey gear icon in the top right hand corner, switch its input to Python.
After that, enter these two lines in to the Python entry field:
from pydev import pydevd
pydevd.settrace('localhost', port=7720, stdoutToServer=True, stderrToServer=True, suspend=False)
If all goes well, PyCharm's listener should report that it is now connected to a pydev debugger. At this stage, you should be able to import python modules and use break points to debug your scripts.
Message edited by Nicholas Stevenson on 3/28/2013 - 8:50 PM