summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
Commit message (Collapse)AuthorAgeFilesLines
* Have Bdb frame_returning in the finally clauseSenthil Kumaran2012-05-011-3/+5
|
* issue13183 - Fix pdb skipping frames after hitting a breakpoint and running ↵Senthil Kumaran2012-05-011-0/+11
| | | | step. Patch by Xavier de Gaye
* Merged revisions 86861 via svnmerge fromSenthil Kumaran2010-11-291-5/+9
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86861 | senthil.kumaran | 2010-11-29 19:54:17 +0800 (Mon, 29 Nov 2010) | 5 lines Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number. Handle multiple breakpoints at same line. Update docs/test. Patch by Xavier de Gaye. ........
* Merged revisions 83259,83261,83264-83265,83268-83269,83271-83272,83281 via ↵Georg Brandl2010-08-011-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83259 | georg.brandl | 2010-07-30 09:03:39 +0200 (Fr, 30 Jul 2010) | 1 line Clarification. ........ r83261 | georg.brandl | 2010-07-30 09:21:26 +0200 (Fr, 30 Jul 2010) | 1 line #9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging. ........ r83264 | georg.brandl | 2010-07-30 10:45:26 +0200 (Fr, 30 Jul 2010) | 1 line Document the "jump" command in pdb.__doc__, and add a version tag for "until X". ........ r83265 | georg.brandl | 2010-07-30 10:54:49 +0200 (Fr, 30 Jul 2010) | 1 line #8015: fix crash when entering an empty line for breakpoint commands. Also restore environment properly when an exception occurs during the definition of commands. ........ r83268 | georg.brandl | 2010-07-30 11:23:23 +0200 (Fr, 30 Jul 2010) | 2 lines Issue #8048: Prevent doctests from failing when sys.displayhook has been reassigned. ........ r83269 | georg.brandl | 2010-07-30 11:43:00 +0200 (Fr, 30 Jul 2010) | 1 line #6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding. ........ r83271 | georg.brandl | 2010-07-30 11:59:28 +0200 (Fr, 30 Jul 2010) | 1 line #5727: Restore the ability to use readline when calling into pdb in doctests. ........ r83272 | georg.brandl | 2010-07-30 12:29:19 +0200 (Fr, 30 Jul 2010) | 1 line #5294: Fix the behavior of pdb "continue" command when called in the top-level debugged frame. ........ r83281 | georg.brandl | 2010-07-30 15:36:43 +0200 (Fr, 30 Jul 2010) | 1 line Add myself for pdb. ........
* replace has_key with 'in' operatorBenjamin Peterson2009-10-091-2/+2
|
* #5142: add module skipping feature to pdb.Georg Brandl2009-05-051-1/+12
|
* Fix several issues relating to access to source code inside zipfiles. ↵Nick Coghlan2008-12-141-2/+2
| | | | Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
* fix #4150: pdb's up command didn't work for generators in post-mortemBenjamin Peterson2008-10-221-0/+2
|
* Remove use of tuple unpacking and dict.has_key() so as to silenceBrett Cannon2008-08-011-3/+3
| | | | SyntaxWarning as triggered by -3.
* Revert the renaming of repr to reprlib.Brett Cannon2008-05-231-3/+3
|
* Changed references to the reprlib module to use its new name.Alexandre Vassalotti2008-05-161-3/+3
|
* Add the "until" command to pdbBenjamin Peterson2008-05-111-16/+17
|
* #2498 modernized try, except, finally statements in bdbBenjamin Peterson2008-03-281-12/+9
|
* Patch #721464: pdb.Pdb instances can now be given explicit stdin andGeorg Brandl2006-05-101-7/+9
| | | | | stdout arguments, making it possible to redirect input and output for remote debugging.
* Patch #1191700: Adjust column alignment in bdb breakpoint lists.Martin v. Löwis2006-04-151-3/+3
| | | | Backported to 2.4.
* Bug #1055168: calling pdb.set_trace() calls Bdb.set_trace, which madeJohannes Gijsbers2004-11-071-3/+7
| | | | | | | the debugger enter inside pdb.set_trace. Patch #1061767: make pdb.set_trace enter enter at the stack frame calling pdb.set_trace().
* SF bug #1052503: pdb runcall should accept keyword argumentsRaymond Hettinger2004-10-241-2/+2
|
* Patch #1003640: replace checkline() function parsing with new breakpoint logic:Johannes Gijsbers2004-08-301-4/+41
| | | | | | | | | | | | | 1) When a breakpoint is set via a function name: - the breakpoint gets the lineno of the def statement - a new funcname attribute is attached to the breakpoint 2) bdb.effective() calls new function checkfuncname() to handle: - def statement is executed: don't break. - a first executable line of a function with a breakpoint on the lineno of the def statement is reached: break. This fixes bugs 976878, 926369 and 875404. Thanks Ilya Sandler.
* Enable the profiling of C functions (builtins and extensions)Nicholas Bastin2004-03-241-0/+6
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Get rid of many apply() calls.Guido van Rossum2003-02-271-1/+1
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-9/+9
|
* Whitespace normalizationNeal Norwitz2002-05-291-2/+2
|
* This is a Python 2.1 and 2.2 bugfix candidate:Christian Tismer2002-05-281-11/+5
| | | | | | | | | | | | | | | | | (or how do I "mark" something to be a candidate?) fixed an old buglet that caused bdb to be unable to continue in the botframe, after a breakpoint was set. the key idea is not to set botframe to the bottom level frame, but its f_back, which actually might be None. Additional changes: migrated old exception trick to use sys._getframe(), which exists both in 2.1 and 2.2 . Note: I believe Mark Hammond needs to look over his code now. F5 correctly starts up in the debugger, but later on doesn't stop at a given breakpoint any longer. kind regards - chris
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-8/+8
|
* Use docstrings for exception classesNeal Norwitz2002-03-311-1/+2
|
* Stop using string exceptionsNeal Norwitz2002-03-311-1/+1
|
* canonic(): Fix by Edward K Ream to make breakpoints work better onGuido van Rossum2002-02-251-0/+1
| | | | | | | Windows: apply normcase() as well as abspath(). (Note: this isn't needed to make IDLE work, but it's a good idea anyway.) Bugfix candidate -- both 2.2.1 and 2.1.3.
* SF #515005, change "1 + ''" (which pychecker warns about being invalid)Neal Norwitz2002-02-111-2/+2
| | | | into "raise Exception".
* canonic(): don't use abspath() for filenames looking like <...>; thisGuido van Rossum2001-11-291-0/+2
| | | | | fixes the problem reported in SF bug #477023 (Jonathan Mark): "pdb: unexpected path confuses Emacs".
* Return self.trace_dispatch from dispatch_return() to enable stepping through ↵Just van Rossum2001-06-251-0/+1
| | | | generators. (An alternative would be to create a new "yield" debugger event, but that involves many more changes, and might break Bdb subclasses.)
* Make it clear that a bdb subclass must implement do_clear().Guido van Rossum2001-04-081-0/+3
| | | | This was found by Neal Norwitz's PyChecker.
* String method conversion.Eric S. Raymond2001-02-091-4/+6
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Whitespace normalization.Tim Peters2001-01-141-44/+44
|
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-021-526/+526
| | | | | | | | | | | 1. Comments at the beginning of the module, before functions, and before classes have been turned into docstrings. 2. Tabs are normalized to four spaces. Also, removed the "remove" function from dircmp.py, which reimplements list.remove() (it must have been very old).
* Change two occurrences of type(x) <> types.CodeType intoGuido van Rossum2000-01-191-2/+2
| | | | | | isinstance(x, types.CodeType). Suggested by Finn Bock.
* canonic(): This used to be equivalent to str() but that caused tooBarry Warsaw1999-09-091-6/+9
| | | | | | | much breakage (esp. in JPython which holds absolute path names in co_filename already). This implementation uses os.path.abspath() as a slightly better way to canonicalize path names. It implements a cache.
* Embarrassing: remove a debug print statement from set_break() for theGuido van Rossum1999-01-291-1/+0
| | | | second time!
* Support a canonical() method, implementable by a derived class, to beGuido van Rossum1999-01-291-6/+20
| | | | | | | | applied to all filenames before they are compared, looked up in the breaks dictionary, etc. The default implementation does nothing -- it's implented as fast as possible via str(). A useful implementation would make everything a absolute, e.g. return os.path.normcase( os.path.abspath(filename)).
* Correct typo in new function get_breaks().Guido van Rossum1999-01-251-1/+1
|
* Change clear_break() to the old signature clear_break(file, line).Guido van Rossum1999-01-251-26/+40
| | | | | | | | Add new clear_bpbynumber() with single bpno argument. (Adapted from a patch by Richard Wolff.) Also some cleanup in error messages and moved some comments into a docstring.
* Bomb on deleting a temporary breakpoint: there's no methodGuido van Rossum1998-11-181-1/+1
| | | | do_delete(); do_clear() was meant. By Greg Ward.
* Don't set a local variable named __args__; this feature no longerGuido van Rossum1998-09-281-1/+1
| | | | works and Greg Ward just reported a problem it caused...
* Richard Wolff's changes:Guido van Rossum1998-09-111-23/+172
| | | | | | | | | bdb.py now has a class definition called Breakpoint along with associated methods. There's no reason why this class has to be there; if you prefer it elsewhere, 'tis easily done. (Minor reformatting by GvR; e.g. moved Breakpoint's doc string to proper point.)
* Use sys.exc_info() where needed.Guido van Rossum1997-09-291-2/+2
|
* Normalize whitespace.Guido van Rossum1997-07-111-4/+4
|
* Support for conditional breakpoints (Jim Fulton).Guido van Rossum1997-07-111-4/+16
|
* Allow code objects to be passed to run() and eval().Guido van Rossum1996-10-151-2/+7
|
* handle class exceptions; added runeval; made runctx obsoleteGuido van Rossum1995-02-271-7/+30
|