Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

[guide] Debug using Aptana Studio 3 with PyDev

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
gechu
Experienced User
Posts: 58
Joined: Sat Jan 07, 2012 10:35 am

[guide] Debug using Aptana Studio 3 with PyDev

Post by gechu »

I don┬┤t know if you need the default python 2.6 (or 2.7), or if the one available at http://www.stackless.com (version 2.6.x) which I know EG is using.
  1. Get Aptana Studio 3. Setup a workspace, and make sure the plugin files are available in it.
  2. Add these rows to your code (you might have to modify the path to psysrc to fit your installation):

    Code: Select all

    	sys.path.append('c:\\Users\\YourUserName\\appdata\\Local\\Aptana Studio 3\\plugins\\org.python.pydev_2.7.0.2012110722\\pysrc')
    	import pydevd;pydevd.settrace()
    
  3. Now follow this guide: http://pydev.org/manual_adv_remote_debugger.html to start the PyDev remote debugging server. Step #3 in the referenced guide (Make sure pydevd.py is in your pythonpath), has an incorrect path. Step #2 in this guide has a correct one.
  4. Add some breakpoints, and finally lanuch EG
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Re: [guide] Debug using Aptana Studio 3 with PyDev

Post by cfull1 »

Have you tried this?
I'm have trouble with stepping through plugin code which runs on a different thread.
Post Reply