Python Debugger

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

    Python Debugger

    Is there any python debugger that can

    1) be used remotely
    2) can handle multiple threads

    I checked Eric, IDLE and Wing-IDE. None of them can do this.
    Any other recommendations ?
  • Alan Gauld

    #2
    Re: Python Debugger

    On 18 Aug 2003 12:34:09 -0700, [email protected] (Lothar Scholz)
    wrote:[color=blue]
    > Is there any python debugger that can
    >
    > 1) be used remotely[/color]

    What do you mean by remotely? Debug a program running on a server
    from a remote PC? Or telnet to the server and display the debug
    session on the PC?

    If the latter then the standard pdb module works just fine.
    [color=blue]
    > 2) can handle multiple threads[/color]

    Never tried that one, although pdb might work...

    Alan G.
    Author of the Learn to Program website

    Comment

    • Thomas Heller

      #3
      Re: Python Debugger

      [email protected] (Lothar Scholz) writes:
      [color=blue]
      > Is there any python debugger that can
      >
      > 1) be used remotely
      > 2) can handle multiple threads
      >
      > I checked Eric, IDLE and Wing-IDE. None of them can do this.
      > Any other recommendations ?[/color]

      Hapdebugger claims all this (but I've never really tried it).



      Thomas

      Comment

      • Lothar Scholz

        #4
        Re: Python Debugger

        alan.gauld@btin ternet.com (Alan Gauld) wrote in message news:<3f412cf3. 351547428@news. blueyonder.co.u k>...[color=blue]
        > On 18 Aug 2003 12:34:09 -0700, [email protected] (Lothar Scholz)
        > wrote:[color=green]
        > > Is there any python debugger that can
        > >
        > > 1) be used remotely[/color]
        >
        > What do you mean by remotely? Debug a program running on a server
        > from a remote PC?[/color]

        Yes this is what i mean
        [color=blue][color=green]
        > > 2) can handle multiple threads[/color]
        >
        > Never tried that one, although pdb might work...[/color]

        No it does not.

        Comment

        • Dieter Maurer

          #5
          Re: Python Debugger

          [email protected] (Lothar Scholz) writes on 19 Aug 2003 13:20:12 -0700:[color=blue]
          > alan.gauld@btin ternet.com (Alan Gauld) wrote in message news:<3f412cf3. 351547428@news. blueyonder.co.u k>...[color=green]
          > > On 18 Aug 2003 12:34:09 -0700, [email protected] (Lothar Scholz)
          > > wrote:[color=darkred]
          > > > Is there any python debugger that can
          > > >
          > > > 1) be used remotely[/color]
          > >
          > > What do you mean by remotely? Debug a program running on a server
          > > from a remote PC?[/color]
          >
          > Yes this is what i mean[/color]

          For this, we use WingIDE, a commercial IDE for Python.
          [color=blue][color=green][color=darkred]
          > > > 2) can handle multiple threads[/color][/color][/color]

          When you mean a debugger that can set breakpoints in any thread,
          analyse the state of any thread etc, then this is unlikely.

          Python maintains the debugging hook in a thread specific data structure.
          The available API functions can only access the debugging hook
          in the own thread but not in a foreign thread.

          This implies that unless the start of a thread is customized
          (such that the debugging hook is immediately set on thread start)
          it is very difficult to debug a foreign thread (without
          a specialized C extension using internal implementation details of
          Pythons thread implementation) .

          Dieter

          Comment

          • Skip Montanaro

            #6
            Re: Python Debugger


            David> There was some talk about enhancing this in the 2.3 timeframe,
            David> but I don't think it made it in.

            I thought I saw one or two checkins by Jeremy Hylton in this regard. I
            don't recall if it was before or after the 2.3 release, but I'm pretty sure
            there's more in there now (in CVS at least) than there was in 2.2.

            Skip

            Comment

            • Mike Rovner

              #7
              Re: Python Debugger

              Lothar Scholz wrote:[color=blue]
              > alan.gauld@btin ternet.com (Alan Gauld) wrote in message
              > news:<3f412cf3. 351547428@news. blueyonder.co.u k>...[color=green]
              >> On 18 Aug 2003 12:34:09 -0700, [email protected] (Lothar Scholz)
              >> wrote:[color=darkred]
              >>> Is there any python debugger that can
              >>> 1) be used remotely[/color]
              >>
              >> What do you mean by remotely? Debug a program running on a server
              >> from a remote PC?[/color]
              >
              > Yes this is what i mean[/color]

              Successfully done that with WingIDE (server on Solaris, debug from PC)

              Debugging multi-thread python apps is being discussed in another topic.

              Mike




              Comment

              • Heikki Orsila

                #8
                Re: Python Debugger

                Alan Gauld <alan.gauld@bti nternet.com> wrote:[color=blue]
                > Or telnet to the server and display the debug session on the PC?[/color]

                Don't use telnet. man ssh ; man sshd

                --
                Heikki Orsila There has yet to be any innovation, new
                heikki.orsila@e e.tut.fi features or new capabilities out of the
                http://ee.tut.fi/~heikki Linux platform. - Steve Ballmer of Microsoft

                Comment

                • Heikki Orsila

                  #9
                  Re: Python Debugger

                  Alan Gauld <alan.gauld@bti nternet.com> wrote:[color=blue]
                  > Or telnet to the server and display the debug session on the PC?[/color]

                  Don't use telnet. man ssh ; man sshd

                  --
                  Heikki Orsila There has yet to be any innovation, new
                  heikki.orsila@e e.tut.fi features or new capabilities out of the
                  http://ee.tut.fi/~heikki Linux platform. - Steve Ballmer of Microsoft

                  Comment

                  Working...