Has anyone successfully been able to configure ArcGIS 10 to use PyDev's debugging server for debugging? How do you set that up? I have PyDev working fine by itself, with ArcPy working fine, but I can't bind the debugger to scripts I run from ArcToolbox. I notice you can specify a debugger in ArcGIS, so I was wondering if it's possible to use the PyDev debug server. Anyone have opinions/tips/guidance?
-
What happens when you specify PyDev as the debugger in the options window?– James SchekCommented Mar 23, 2011 at 22:15
-
PyDev is just an extension to Eclipse, so I'm not sure how one would go about formatting the proper text to enter there.– Kenton WCommented Mar 24, 2011 at 16:22
Add a comment
|
1 Answer
http://pydev.org/manual_adv_remote_debugger.html looks like it has instructions that will do the trick.
You'll have to make some additions to your python code itself, specifically:
Make an addition to sys.path so it includes the path for pydevd.py from the Eclipse plugin (Alternatively, you could set the PYTHONPATH environment variable).
Import the pydevd module and call pydevd.settrace().