[issue12913] Add a debugging howto

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: Hello! I didn’t produce anything for this apart from the initial outline. Looking at it now, it looks like a talk outline! Maybe I should run with it, present at my local user group, and only write it up after collecting feedback from real

[issue12913] Add a debugging howto

2016-11-06 Thread A.M. Kuchling
A.M. Kuchling added the comment: Éric Araujo: did you ever make any progress on this, such as producing a draft version? -- nosy: +akuchling ___ Python tracker

[issue12913] Add a debugging howto

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___

[issue12913] Add a debugging howto

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - enhancement versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12913 ___

[issue12913] Add a debugging howto

2012-10-16 Thread Todd Rovito
Todd Rovito added the comment: I think this is an excellent idea. How about putting in some advanced debugging with IDLE? For example I have read somewhere that IDLE lets you set break points but the documentation for IDLE OS not that clear on debugging. -- nosy: +Todd.Rovito

[issue12913] Add a debugging howto

2012-10-16 Thread Ramchandra Apte
Ramchandra Apte added the comment: Right-click to open a menu in which you can set a breakpoint. I don't think debugging in IDLE needs a tutorial. (except the setting breakpoint thing should be documented. -- nosy: +ramchandra.apte ___ Python

[issue12913] Add a debugging howto

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12913 ___ ___

[issue12913] Add a debugging howto

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [Terry] Binary search with print is done manually. If error not obvious from quick read, in a 20 line function, add print around line 10. If ok there, look down and add print later in function. [...] Okay, so it’s what I thought only I

[issue12913] Add a debugging howto

2011-10-21 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: - running Python in gdb This is somewhat orthogonal, but the devguide/gdb page doesn't say how to start running Python in gdb (it might be obvious to people used to use gdb, but it should still be mentioned). If the devguide is

[issue12913] Add a debugging howto

2011-09-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [Terry] If you write 'How to debug Python code' rather than just How to use pdb, That is my intention. I would start with the use of print statements You, Ezio and I concur :) and binary search. I’m not familiar with that term. Is it hg

[issue12913] Add a debugging howto

2011-09-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Binary search with print is done manually. If error not obvious from quick read, in a 20 line function, add print around line 10. If ok there, look down and add print later in function. If not, look up and add print earlier in function. This

[issue12913] Add a debugging howto

2011-09-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: More time: read outline, good start. On syntax errors, IDLE put up message box and OK returns to window with apparent error hi-lited and cursor just after. -- ___ Python tracker

[issue12913] Add a debugging howto

2011-09-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Hadn’t though about coverage. Will mention it and add a link to the devguide part that talks about it. Is devguide/coverage.html#using-coverage-py generic enough? We don't have to duplicate the coverage documentation though, mentioning

[issue12913] Add a debugging howto

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If you write 'How to debug Python code' rather than just How to use pdb, I would start with the use of print statements and binary search. Have short sections on using trace and profile. Very useful would be a list of error messages and

[issue12913] Add a debugging howto

2011-09-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW I almost always use print for debugging, and find the use of a real debugger overkill in Python in most of the cases. People coming from other languages often feel the need of using a debugger because that's what works best with the

[issue12913] Add a debugging howto

2011-09-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12913 ___ ___

[issue12913] Add a debugging howto

2011-09-06 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I found a few blogs posts that explained how to use pdb. It appears from the comments that such introductory material is very useful to a lot of users. Instead of just expanding the pdb module docs, I propose to add a debugging howto