mirror of https://github.com/python/cpython
Issue #10492: bdb.Bdb.run() only traces the execution of the code
And not the compilation (if the input is a string).
This commit is contained in:
parent
457ab068a3
commit
4bd81725f2
|
@ -385,6 +385,8 @@ class Bdb:
|
||||||
if locals is None:
|
if locals is None:
|
||||||
locals = globals
|
locals = globals
|
||||||
self.reset()
|
self.reset()
|
||||||
|
if isinstance(cmd, str):
|
||||||
|
cmd = compile(cmd, "<string>", "exec")
|
||||||
sys.settrace(self.trace_dispatch)
|
sys.settrace(self.trace_dispatch)
|
||||||
try:
|
try:
|
||||||
exec(cmd, globals, locals)
|
exec(cmd, globals, locals)
|
||||||
|
|
|
@ -30,6 +30,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #10492: bdb.Bdb.run() only traces the execution of the code, not the
|
||||||
|
compilation (if the input is a string).
|
||||||
|
|
||||||
- Issue #7995: When calling accept() on a socket with a timeout, the returned
|
- Issue #7995: When calling accept() on a socket with a timeout, the returned
|
||||||
socket is now always blocking, regardless of the operating system.
|
socket is now always blocking, regardless of the operating system.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue