Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
    
What happens when you specify PyDev as the debugger in the options window? –  James Schek Mar 23 '11 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 W Mar 24 '11 at 16:22

1 Answer 1

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().

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.