Sublime Forum

Python debugger

#1

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 :smile:

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

N

0 Likes

#2

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.

0 Likes