command line attachable debugger
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..)
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
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
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.)
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
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