Home Download Buy Blog Forum Support

pdb/debugging - build system run py script from terminal

pdb/debugging - build system run py script from terminal

Postby outer7 on Wed Feb 15, 2012 9:42 am

Hi,

love st2, would like to be able to use pdb debugging (eg. import pdb;pdb.set_trace()). But it seems it is not possible for st2 to receive interactive user input, and instead of allowing step-through or interactive debugging, exits.

Is there a simple way around this, such as configuring a build system to run a python script through an external terminal. Or adjusting the Terminal plugin to pickup and execute the current file... And if so... how would either of these be done? I'm on ubuntu.

Many thanks.
outer7
 
Posts: 17
Joined: Wed Feb 15, 2012 9:17 am

Re: pdb/debugging - build system run py script from terminal

Postby wuub on Wed Feb 15, 2012 11:02 am

Try: SublimeREPL 1.0.7
Tools -> SublimeREPL -> Python -> Python - PDB
Image
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: pdb/debugging - build system run py script from terminal

Postby outer7 on Wed Feb 15, 2012 11:54 am

this is awesome! even better than i hoped for!

thanks very much!
outer7
 
Posts: 17
Joined: Wed Feb 15, 2012 9:17 am

Re: pdb/debugging - build system run py script from terminal

Postby wuub on Wed Feb 15, 2012 12:09 pm

Use it for a while and then let me know how it's working for you.
I gave it like 10seconds of testing, so yeah... ;D

https://github.com/wuub/SublimeREPL/issues
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland


Return to General Discussion

Who is online

Users browsing this forum: rmmoul and 30 guests