Re: Let's talk about debuggers!

2017-11-01 Thread dieter
Thomas Jollans writes: > I just wanted to know what tools everyone used for debugging Python > applications - scripts / backend / desktop apps / notebooks / whatever. > Apart from the usual dance with log files and strategically inserted > print() calls, that is. > > Of course we all know and mild

Re: Let's talk about debuggers!

2017-10-27 Thread Robin Becker
On 25/10/2017 15:08, Michele Simionato wrote: pdb plus plus: https://pypi.python.org/pypi/pdbpp I like the idea, but in putty at least changing the terminal size causes pdb++ to detach immediately from the process and mess up the screen. I think this is caused by (5, 'Input/output error') here

Re: Let's talk about debuggers!

2017-10-26 Thread Paul Rubin
-industrial applications with tkinter and they have a nice factory-floor vibe. I generally just use pdb for debugging. The feature I miss most is the ability to trap to the debugger if the program throws an unhandled exception. I think some other Python debuggers do support that. I've foun

Re: Let's talk about debuggers!

2017-10-25 Thread Thomas Jollans
On 25/10/17 22:18, Terry Reedy wrote: > On 10/25/2017 12:12 PM, Thomas Jollans wrote: >> On 2017-10-25 15:57, Rustom Mody wrote: >>> >>> pdb inside emacs works (to a fashion) >>> And it shows the arrow for current line so its at least quasi-gui >>> >>> I believe idle too is much more usable than a

Re: Let's talk about debuggers!

2017-10-25 Thread m
W dniu 25.10.2017 o 15:53, Ned Batchelder pisze: > On 10/25/17 9:07 AM, Thomas Jollans wrote: >> Hi, >> >> I just wanted to know what tools everyone used for debugging Python >> applications - scripts / backend / desktop apps / notebooks / whatever. >> Apart from the usual dance with log files and

Re: Let's talk about debuggers!

2017-10-25 Thread Terry Reedy
On 10/25/2017 12:12 PM, Thomas Jollans wrote: On 2017-10-25 15:57, Rustom Mody wrote: pdb inside emacs works (to a fashion) And it shows the arrow for current line so its at least quasi-gui I believe idle too is much more usable than a few years earlier I haven't used IDLE in years (if ever)

Re: Let's talk about debuggers!

2017-10-25 Thread Daniele Forghieri
Il 25/10/2017 15:07, Thomas Jollans ha scritto: Hi, I just wanted to know what tools everyone used for debugging Python applications - scripts / backend / desktop apps / notebooks / whatever. Apart from the usual dance with log files and strategically inserted print() calls, that is. Of course

Re: Let's talk about debuggers!

2017-10-25 Thread Tim
On Wednesday, October 25, 2017 at 9:07:47 AM UTC-4, Thomas Jollans wrote: > Hi, > > I just wanted to know what tools everyone used for debugging Python > applications - scripts / backend / desktop apps / notebooks / whatever. > Apart from the usual dance with log files and strategically inserted >

Re: Let's talk about debuggers!

2017-10-25 Thread Thomas Jollans
On 2017-10-25 15:57, Rustom Mody wrote: > > pdb inside emacs works (to a fashion) > And it shows the arrow for current line so its at least quasi-gui > > I believe idle too is much more usable than a few years earlier I haven't used IDLE in years (if ever), partly because Tkinter is so incredibl

Re: Let's talk about debuggers!

2017-10-25 Thread William Ray Wing
> On Oct 25, 2017, at 9:07 AM, Thomas Jollans wrote: > > [byte] > What options are there for Python (that work)? What text editors (and > IDEs) have a decent integrated debugger or debugging plugin? I rather like WingIDE (the name is a coincidence). It allows insertion/removal of break poi

Re: Let's talk about debuggers!

2017-10-25 Thread Bill
Fabien wrote: On 10/25/2017 03:07 PM, Thomas Jollans wrote: What options are there for Python (that work)? PyCharm's debugger is fine (also available in the community edition) +1 Cheers, Fabien -- https://mail.python.org/mailman/listinfo/python-list

Re: Let's talk about debuggers!

2017-10-25 Thread Michele Simionato
pdb plus plus: https://pypi.python.org/pypi/pdbpp -- https://mail.python.org/mailman/listinfo/python-list

Re: Let's talk about debuggers!

2017-10-25 Thread Ned Batchelder
On 10/25/17 9:07 AM, Thomas Jollans wrote: Hi, I just wanted to know what tools everyone used for debugging Python applications - scripts / backend / desktop apps / notebooks / whatever. Apart from the usual dance with log files and strategically inserted print() calls, that is. Of course we al

Re: Let's talk about debuggers!

2017-10-25 Thread Rustom Mody
On Wednesday, October 25, 2017 at 6:37:47 PM UTC+5:30, Thomas Jollans wrote: > Hi, > > I just wanted to know what tools everyone used for debugging Python > applications - scripts / backend / desktop apps / notebooks / whatever. > Apart from the usual dance with log files and strategically inserte

Re: Let's talk about debuggers!

2017-10-25 Thread Fabien
On 10/25/2017 03:07 PM, Thomas Jollans wrote: What options are there for Python (that work)? PyCharm's debugger is fine (also available in the community edition) Cheers, Fabien -- https://mail.python.org/mailman/listinfo/python-list

Let's talk about debuggers!

2017-10-25 Thread Thomas Jollans
Hi, I just wanted to know what tools everyone used for debugging Python applications - scripts / backend / desktop apps / notebooks / whatever. Apart from the usual dance with log files and strategically inserted print() calls, that is. Of course we all know and mildly dislike pdb. Personally, i

Re: Do any debuggers support "edit and continue?"

2010-05-22 Thread Fabio Zadrozny
On Wed, May 12, 2010 at 2:42 PM, Joel Koltner wrote: > Just curious... in Microsoft's Visual Studio (and I would presume some other > tools), for many languages (both interpreted and compiled!) there's an "edit > and conitnue" option that, when you hit a breakpoint, allows you to modify a > line o

Re: Do any debuggers support "edit and continue?"

2010-05-15 Thread Lawrence D'Oliveiro
In message , Joel Koltner wrote: > Just curious... in Microsoft's Visual Studio (and I would presume some > other tools), for many languages (both interpreted and compiled!) there's > an "edit and conitnue" option that, when you hit a breakpoint, allows you > to modify a line of code before it's

Re: Do any debuggers support "edit and continue?"

2010-05-13 Thread Michiel Overtoom
On 2010-05-13 00:07, Joel Koltner wrote: Hey, a lot of people would argue that Python's lack of strong typing and data/member protection (from one class to another) encourages sloppy programming too. :-) You're being ironic, aren't you? Python does have strong typing (many people confuse tha

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Jess
Cheap Chanel Watches for sale at: http://www.luxuryowner.net/ Chanel Watches collection: http://www.luxuryowner.net/replica-chanel-watches.html Chanel J12 Automatic Watches: http://www.luxuryowner.net/Chanel-J12-Automatic-Watches.html Chanel J12 Quartz Watches: http://www.luxuryowner.net/Chan

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Phlip
On May 12, 3:03 pm, "Joel Koltner" wrote: > Pretty much, yeah... Realistically, we're probably talking less than a minute > each time, so objectively it's not really a big deal -- it's just different > than what I'm used to so I'm noticing it more. :-) > > I guess what I'm realizing here is that

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Joel Koltner
"John Nagle" wrote in message news:4beb15c5$0$1634$742ec...@news.sonic.net... Having actually used LISP systems with "edit and continue", it's a good thing that Python doesn't have it. It encourages a "patch" mentality, and the resulting code is usually disappointing. Hey, a lot of people

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Joel Koltner
"Phlip" wrote in message news:c014ae9f-99d8-4857-a3f7-e6ac16e45...@e34g2000pra.googlegroups.com... Are you implying, after an edit, you need to start a program again, then enter several user inputs, to navigate back to the place where you hit the syntax error? (WxWidgets noted - props!) Pretty

RE: Do any debuggers support "edit and continue?"

2010-05-12 Thread Sandy Sandy
maybe ipython? http://showmedo.com/videos/video?name=120&fromSeriesID=100 > From: zapwiredashgro...@yahoo.com > Subject: Do any debuggers support "edit and continue?" > Date: Wed, 12 May 2010 10:42:31 -0700 > To: python-list@python.org > > Just curious

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread John Nagle
Joel Koltner wrote: Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an "edit and conitnue" option that, when you hit a breakpoint, allows you to modify a line of code before it's actually executed.

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Phlip
On May 12, 1:38 pm, "Joel Koltner" wrote: > Well, sure, that is the current fix... but an "edit and continue" feature > would make for a much faster fix. :-) Are you implying, after an edit, you need to start a program again, then enter several user inputs, to navigate back to the place where yo

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Joel Koltner
"Phlip" wrote in message news:75c050d2-365e-4b08-8716-884ed5473...@k25g2000prh.googlegroups.com... On May 12, 12:44 pm, "Joel Koltner" wrote: Are you implying that you then run the code, and - after a handful of higher-level calls - control flow gets down to the lines you just typed, and the r

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Phlip
On May 12, 12:44 pm, "Joel Koltner" wrote: > I find myself making mistakes in typing the name of classes and/or methods > when I'm first getting started with them (there are some thousands of them > after all, and even of commonly used classes/methods you're probably talking > upwards of a hundre

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Joel Koltner
"Phlip" wrote in message news:d580dece-bd42-4753-a0c6-783ce69b5...@m31g2000pre.googlegroups.com... People who need "edit and continue" probably need developer tests instead. You typically edit the test a little, run all the code, edit the code a little, run all the code, and integrate whenever t

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Phlip
On May 12, 10:42 am, "Joel Koltner" wrote: > Does any Python debugger support this feature? I have worked for >3 years by now in Python and have never once debugged. People who need "edit and continue" probably need developer tests instead. You typically edit the test a little, run all the code

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Lie Ryan
On 05/13/10 03:42, Joel Koltner wrote: > Just curious... in Microsoft's Visual Studio (and I would presume some > other tools), for many languages (both interpreted and compiled!) > there's an "edit and conitnue" option that, when you hit a breakpoint, > allows you to modify a line of code before i

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Joel Koltner
I can see this being challenging. I think it's pretty cool how some Python debuggers will allow you to use a shell with the context set to the current function or any of the calling functions higher up the call stack hierarchy as well. This would also slow normal execution, so it would have to b

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Terry Reedy
On 5/12/2010 1:42 PM, Joel Koltner wrote: Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an "edit and conitnue" option that, when you hit a breakpoint, allows you to modify a line of code before it's

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Stef Mientki
On 12-05-2010 19:42, Joel Koltner wrote: > Just curious... in Microsoft's Visual Studio (and I would presume some > other tools), for many languages (both interpreted and compiled!) > there's an "edit and conitnue" option that, when you hit a breakpoint, > allows you to modify a line of code before

RE: Do any debuggers support "edit and continue?"

2010-05-12 Thread Sandy Sandy
) but it is not working, bug?? Sandy > From: zapwiredashgro...@yahoo.com > Subject: Do any debuggers support "edit and continue?" > Date: Wed, 12 May 2010 10:42:31 -0700 > To: python-list@python.org > > Just curious... in Microsoft's Visual Studio (and I would

Do any debuggers support "edit and continue?"

2010-05-12 Thread Joel Koltner
Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an "edit and conitnue" option that, when you hit a breakpoint, allows you to modify a line of code before it's actually executed. Does any Python deb

Re: Python debuggers with sys.settrace()

2010-05-06 Thread Chris Rebert
On Thu, May 6, 2010 at 5:59 AM, Sarah Mount wrote: > On 5 May 2010 10:17, Carl Banks wrote: >> On May 2, 11:06 am, Sarah Mount wrote: >>> This is a bit of an odd question, but is there any way for a Python >>> debugger to suppress I/O generated by the program which is being >>> debugged? I guess

Re: Python debuggers with sys.settrace()

2010-05-06 Thread Sarah Mount
On 5 May 2010 10:17, Carl Banks wrote: > On May 2, 11:06 am, Sarah Mount wrote: >> This is a bit of an odd question, but is there any way for a Python >> debugger to suppress I/O generated by the program which is being >> debugged? I guess an "obvious" thing to do would be to replace core >> part

Re: Python debuggers with sys.settrace()

2010-05-05 Thread Carl Banks
On May 2, 11:06 am, Sarah Mount wrote: > This is a bit of an odd question, but is there any way for a Python > debugger to suppress I/O generated by the program which is being > debugged? I guess an "obvious" thing to do would be to replace core > parts of the standard library and change any relev

Python debuggers with sys.settrace()

2010-05-02 Thread Sarah Mount
This is a bit of an odd question, but is there any way for a Python debugger to suppress I/O generated by the program which is being debugged? I guess an "obvious" thing to do would be to replace core parts of the standard library and change any relevant imports in the locals and globals dicts to f

Trouble with rpdb2 and winpdb debuggers in embedded Python script

2008-07-25 Thread Matthew Severin
Having some trouble getting rpdb2 and winpdb running properly with Python embedded in a C++ project. Our implementation has a number of C++ classes associated with Python classes. I am able to attach to the embedded script with the debugger and the program freezes and waits. However, when I step

Re: Debuggers

2008-06-17 Thread R. Bernstein
TheSaint <[EMAIL PROTECTED]> writes: > On 19:21, venerdì 13 giugno 2008 R. Bernstein wrote: > >> I'm not completely sure what you mean, but I gather that in >> post-mortem debugging you'd like to inspect local variables defined at the >> place of error. > > Yes, exactly. This can be seen with pdb,

Re: Debuggers

2008-06-14 Thread TheSaint
On 19:21, venerdì 13 giugno 2008 R. Bernstein wrote: > I'm not completely sure what you mean, but I gather that in > post-mortem debugging you'd like to inspect local variables defined at the > place of error. Yes, exactly. This can be seen with pdb, but not pydb. If I'm testing a piece of code a

Re: Debuggers

2008-06-13 Thread R. Bernstein
TheSaint <[EMAIL PROTECTED]> writes: > Hi, > > while testing my program I found some strange happening with pdb and pydb. > > I like pydb because let me restart the program and nicer features, but if > errors pop up, then it will forget all variables (globals and locals gone). I'm not completely

Debuggers

2008-06-13 Thread TheSaint
Hi, while testing my program I found some strange happening with pdb and pydb. I like pydb because let me restart the program and nicer features, but if errors pop up, then it will forget all variables (globals and locals gone). I've to go for pdb because it isn't affected by that problem, but al

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-16 Thread skip
Andreas> Am Donnerstag, den 05.01.2006, 15:03 -0800 schrieb Andreas> [EMAIL PROTECTED]: I know this sounds like brutal, but I've been Andreas> developing Python code for a decade now, and I've almost never Andreas> used pdb.py. OTOH I also use gdb only for "bt" from a core Andr

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-15 Thread Andreas Kostyrka
e even near the term "light-weight". Actually, when it comes to execution time it's quite heavy-weight so to say. > obscure, or change what Python is doing -- something > I worry about with heavier-duty debuggers. It also > comes with Python which gives it some kind of credibi

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-15 Thread Andreas Kostyrka
ot consider manually stepping through a program a costeffective way of debugging. Writting asserts, instrumentisation, automatic debuggers and tracers are usually much better spent money. Consider how complicated it is to apply gdb or pdb say to a CGI program, running in an embedded chroot environment?

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-12 Thread R. Bernstein
Tino Lange <[EMAIL PROTECTED]> writes: > R. Bernstein wrote: > To summarize, I think most of us readers here like your changes or at least > didn't shout loud enough against it ;-) Okay. I'll gladly accept whatever positive interpretation someone wants to offer. :-) > As I also would like to hav

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-09 Thread Tino Lange
R. Bernstein wrote: Hi! To summarize, I think most of us readers here like your changes or at least didn't shout loud enough against it ;-) As I also would like to have a more powerful and gdb-like debugging facility in out-of-the-box python, I think it would be the best strategy to make a conso

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-09 Thread Fernando Perez
R. Bernstein wrote: > Fernando Perez <[EMAIL PROTECTED]> suggests: >> You may want to try out ipython (the current release candidate from >> http://ipython.scipy.org/dist/testing/, which has many improvements on this >> front). The %pdb magic will trigger automatic activation of pdb at any >> unc

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-09 Thread ilya
> - There is no way (I know of) to start a python script > from the command line with the debugger active; > I always have to modify the source to insert a > pdb.set_trace(). With python 2.4 you can do python -m pdb.py yourscript arg1 arg2 Ilya -- http://mail.python.org/mailman/listinfo

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-07 Thread R. Bernstein
so can't help note that this may be a little bit of a self-serving statement.) > A good debugger is a valuable thing, and I've used some incredible > debuggers, including one that actually implemented DWIM. Stepping > through the code is one of the least valuable thing a debugger doe

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-06 Thread Mike Meyer
deal with code written by > consultants who wrote a *lot* of code but are no longer *maintaining* > the code for various reasons). And one place debuggers tend to come in > handy is in focused or problem-solving of others' code. I also read a lot of Python. Cleaning up that which wa

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > For me, it (pdb) is mostly useful for understanding flow of > control and how objects change as that happens. I > find it easier than constantly modifying the source code. Do take a look at Komodo, in that case. Idle does a bit of a job in this direction, and (for me)

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread rurpy
hope) it does not obscure, or change what Python is doing -- something I worry about with heavier-duty debuggers. It also comes with Python which gives it some kind of credibilty in my mind. For me, it is mostly useful for understanding flow of control and how objects change as that happe

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread R. Bernstein
a lot either - and I write a *lot* of Python. Some of us may have to *read* a lot of python. (For example I know many people including myself who have had to deal with code written by consultants who wrote a *lot* of code but are no longer *maintaining* the code for various reasons). And one place d

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread R. Bernstein
[EMAIL PROTECTED] writes: > I was disappointed not to see any replies to this. > I use pdb a lot because most of my debugging needs > are simple, and I don't need/want the overhead or > complications of a heavy duty gui debugger. > > I used ddd only little many many years ago, but > compatibility

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread skip
Mike> I don't use pdb a lot either - and I write a *lot* of Python. Ditto. I frequently just insert prints or enable cgitb. Sometimes I enable line tracing for a specific function and the functions it calls using a tracing decorator. There are lots of things that are easier than breaking

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread R. Bernstein
Fernando Perez <[EMAIL PROTECTED]> suggests: > You may want to try out ipython (the current release candidate from > http://ipython.scipy.org/dist/testing/, which has many improvements on this > front). The %pdb magic will trigger automatic activation of pdb at any > uncaught exception, and '%run

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread Mike Meyer
[EMAIL PROTECTED] writes: > "R. Bernstein" <[EMAIL PROTECTED]> wrote: >> So what I am suggesting is that it would be helpful to just follow an >> existing debugger paradigm (or follow more closely) so folks don't >> have to learn yet another interface. Actually, you're not talking about changing t

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread Fernando Perez
[EMAIL PROTECTED] wrote: > I hope some of the other problems with it get > addressed some day: > - There is no way (I know of) to start a python script > from the command line with the debugger active; > I always have to modify the source to insert a > pdb.set_trace(). I would like somethi

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread rurpy
ow we get to the second issue. Python's stack numbering is > different from the way most (all?) other languages. And "up" and > "down" in pdb.py follow the Python notion of direction rather than > what is common among debuggers. Yes, I realize Python's stack >

pdb.py - why is this debugger different from all other debuggers?

2006-01-02 Thread R. Bernstein
n's stack numbering is different from the way most (all?) other languages. And "up" and "down" in pdb.py follow the Python notion of direction rather than what is common among debuggers. Yes, I realize Python's stack numbering is the one true the right way; I have no doubt th