web - Interactive Shell on website in django -
i have django project , running. i'd provide user interactively use jdb through web app debug application. want user can issue command such
stop in [function name] next
and response , can proceed.
when use os.system however, so:
def attachdebugger(pid): # enable port forwarding adb = adb() adb.set_adb_path('~/library/android/sdk/platform-tools/adb') adb.forward_socket('tcp:8001', 'jdwp:' + pid) # attaching os.system('jdb -connect com.sun.jdi.socketattach:hostname=localhost,port=8001')
then opens jdb session in background, freezes there , doesn't return control python code except stopping via ctrl+c. there way provide such interactive session?
what have similar github-tutorial-page here: https://try.github.io/levels/1/challenges/1 user can interact jdb instance
thanks in advance.
i got done pexpect module.
Comments
Post a Comment