command line attachable debugger
![](https://secure.gravatar.com/avatar/c4406a7b079a1669f65ae00e615ce421.jpg?s=120&d=mm&r=g)
all, I'I was wondering if there was a command line python debugger that was able to attach to an existing process. I'd very much like to be able to debug over a ssh session using screen. Ed (ps - and yes, I know about winpdb, etc... that is not exactly what I'm looking for..)
![](https://secure.gravatar.com/avatar/15fa47f2847592672210af8a25cd1f34.jpg?s=120&d=mm&r=g)
On Jul 24, 2009, at 1:31 AM, Edward Peschko wrote:
all,
I'I was wondering if there was a command line python debugger that was able to attach to an existing process. I'd very much like to be able to debug over a ssh session using screen.
Ed
(ps - and yes, I know about winpdb, etc... that is not exactly what I'm looking for..)
Winpdb is *exactly* what you asked for, so if it's not what you're looking for you'll need to be more specific about what you want that it doesn't do... James
![](https://secure.gravatar.com/avatar/c4406a7b079a1669f65ae00e615ce421.jpg?s=120&d=mm&r=g)
Winpdb is *exactly* what you asked for, so if it's not what you're looking for you'll need to be more specific about what you want that it doesn't do...
James
Fair enough, I was assuming that winpdb didn't have a command line interface, but I was mistaken (rpdb2). In any case, I would argue that attach functionality is something that should be put into the core, along with pdb, as a standard. What if I want to use pudb? or pydb? or the interface which goes with perl? There should be a standard mechanism for debuggers to talk to a python process; not one-offs for each debugger, probably at the level of the python executable (the same way that gcc lets gdb attach with a pid.. Ed
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Fri, Jul 24, 2009 at 9:43 PM, Edward Peschko <horos11@gmail.com> wrote:
There should be a standard mechanism for debuggers to talk to a python process; not one-offs for each debugger, probably at the level of the python executable (the same way that gcc lets gdb attach with a pid..
Sounds like this is moving into hypothetical territory better-suited to python-ideas. (Although I'm sure that if you wanted to contribute polished, tested code for a standard remote debugger interface, few people would complain.)
![](https://secure.gravatar.com/avatar/20f57595c7d4893e8ab834e6f69fc449.jpg?s=120&d=mm&r=g)
Glyph Lefkowitz:
Sounds like this is moving into hypothetical territory better-suited to python-ideas. (Although I'm sure that if you wanted to contribute polished, tested code for a standard remote debugger interface, few people would complain.)
There is a remote debugger protocol called DBGP for different languages (including Python) and debuggers (such as Komodo) http://xdebug.org/docs-dbgp.php Neil
![](https://secure.gravatar.com/avatar/7e4e7569d64e14de784aca9f9a8fffb4.jpg?s=120&d=mm&r=g)
On Thu, Jul 23, 2009, Edward Peschko wrote:
I'I was wondering if there was a command line python debugger that was able to attach to an existing process. I'd very much like to be able to debug over a ssh session using screen.
python-dev is not the correct place to ask about this, please use comp.lang.python (python-dev is for questions about fixing bugs and adding features). -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ "At Resolver we've found it useful to short-circuit any doubt and just refer to comments in code as 'lies'. :-)" --Michael Foord paraphrases Christian Muirhead on python-dev, 2009-03-22
participants (5)
-
Aahz
-
Edward Peschko
-
Glyph Lefkowitz
-
James Y Knight
-
Neil Hodgson