Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _is_debugger_running():
- for frame in sys._current_frames().values():
- current_frame = frame
- while True:
- if os.path.basename(current_frame.f_code.co_filename) == 'bdb.py':
- return True
- if not current_frame.f_back:
- break
- current_frame = current_frame.f_back
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement