Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Lib/bdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, skip=None):
self.breaks = {}
self.fncache = {}
self.frame_returning = None
self.botframe = None

self._load_breaks()

Expand Down
10 changes: 8 additions & 2 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,14 @@ def main():
print('Error:', mainpyfile, 'does not exist')
sys.exit(1)

if run_as_module:
import runpy
try:
runpy._get_module_details(mainpyfile)
except Exception:
traceback.print_exc()
sys.exit(1)

sys.argv[:] = args # Hide "pdb.py" and pdb options from argument list

if not run_as_module:
Expand Down Expand Up @@ -1728,8 +1736,6 @@ def main():
print("Running 'cont' or 'step' will restart the program")
t = sys.exc_info()[2]
pdb.interaction(None, t)
if pdb._user_requested_quit:
break
print("Post mortem debugger finished. The " + mainpyfile +
" will be restarted")

Expand Down