• Guido van Rossum's avatar
    Sjoerd Mullender writes: · 19878f58
    Guido van Rossum yazdı
    I regularly find that pdb sets the breakpoint on the wrong line when I
    try to set a breakpoint on a function.  This fixes the problem
    somewhat.
    The real problem is that pdb tries to parse the Python source code to
    find the first executable line.  A better way might be to inspect the
    code object, or even have a variable in the code object
    co_firstexecutablelineno, but that's too much work.
    
    The patch fixes the problem when the first code line after the def
    statement contains the start *and* end of a triple-quoted string.  The
    code assumed that the end of a triple-quoted string is not on the same
    line as the start, and so it would skip to the end of the *next*
    triple-quoted string.
    19878f58
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...