Remote Debugging for python.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nkarkhan

    Remote Debugging for python.

    Newbie to python here..so bear with me.

    I used to be able to gdb to a target machine running c/c++ code and
    see where my program was hanging, crashing, executing..

    How do I do that with python?
    I have multi-threaded python programs running on a remote machine. I
    want to se where they are at any instance.

    If remote debugging is too much to ask for.. what about local
    debugging?
    Can i break into an executing program and see at source-level where my
    pyhton program/process/thread is at?

    Thank you,
    Nitin.
  • Mike Driscoll

    #2
    Re: Remote Debugging for python.

    On May 29, 2:09 pm, nkarkhan <nkark...@gmail .comwrote:
    Newbie to python here..so bear with me.
    >
    I used to be able to gdb to a target machine running c/c++ code and
    see where my program was hanging, crashing, executing..
    >
    How do I do that with python?
    I have multi-threaded python programs running on a remote machine. I
    want to se where they are at any instance.
    >
    If remote debugging is too much to ask for.. what about local
    debugging?
    Can i break into an executing program and see at source-level where my
    pyhton program/process/thread is at?
    >
    Thank you,
    Nitin.
    I've never done this, but I some Google-fu and found this stuff:




    I suppose you could add some logging code to your program as well and
    check that from time to time.

    Mike

    Comment

    • Paul Rubin

      #3
      Re: Remote Debugging for python.

      nkarkhan <nkarkhan@gmail .comwrites:
      How do I do that with python?
      I have multi-threaded python programs running on a remote machine. I
      want to se where they are at any instance.

      Comment

      Working...