Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fabioz/PyDev.Debugger
/ ask_for_stop
Function
ask_for_stop
tests_python/resources/_debugger_case_settrace.py:1–7 ·
view source on GitHub ↗
(use_back)
Source
from the content-addressed store, hash-verified
1
def
ask_for_stop(use_back):
2
import
pydevd
3
if
use_back:
4
pydevd.settrace(stop_at_frame=sys._getframe().f_back)
5
else
:
6
pydevd.settrace()
7
print(
'Will stop here if use_back==False.'
)
8
9
10
def
outer_method():
Callers
1
outer_method
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected