Home Download Buy Blog Forum Support

Python debugger

Python debugger

Postby fxdgear on Tue Feb 15, 2011 6:48 am

Now this is my first attempt at creating a plugin for sublime. Trying to familiarize myself with the environment.

https://github.com/fxdgear/Sublime-Plugins

Pressing f7 will add an 'ipdb.set_trace()' statement to the line that your cursor is on. It also adds an 'import ipdb' statement as the first line of the file if it is not there already. You can add as many break points as you like in the file. When your done press shift+f7 to get rid of all the ipdb statements.

Anyone who is more familiar with the plugin API please take a look at this and tell me where I'm doing things the hard way or how I can make my life easier :)

Also if you have a suggestion for how I can get the plugin named keymapping to work that'd be greatly appreciated.

N
fxdgear
 
Posts: 9
Joined: Tue Feb 15, 2011 5:13 am

Re: Python debugger

Postby fxdgear on Tue Feb 15, 2011 7:13 am

Was just informed that only the platform default keymappings are used all others will be ignored.

So you'll have to add the key mappings in yourself instead of just symlinking in the files from where ever you have the repo at.
fxdgear
 
Posts: 9
Joined: Tue Feb 15, 2011 5:13 am


Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 5 guests