MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_breakpoint_in_nonexistent_file

Function test_breakpoint_in_nonexistent_file

tests/debugpy/test_breakpoints.py:284–304  ·  view source on GitHub ↗
(pyfile, target, run)

Source from the content-addressed store, hash-verified

282
283
284def test_breakpoint_in_nonexistent_file(pyfile, target, run):
285 @pyfile
286 def code_to_debug():
287 import debuggee
288
289 debuggee.setup()
290
291 with debug.Session() as session:
292 with run(session, target(code_to_debug)):
293 breakpoints = session.set_breakpoints("nonexistent_file.py", [1])
294 assert breakpoints == [
295 {
296 "verified": False,
297 "message": "Breakpoint in file that does not exist.",
298 "source": some.dict.containing(
299 {"path": some.path("nonexistent_file.py")}
300 ),
301 "line": 1,
302 "id": 0,
303 }
304 ]
305
306
307@pytest.mark.flaky(retries=2, delay=1)

Callers

nothing calls this directly

Calls 4

set_breakpointsMethod · 0.80
pathMethod · 0.80
runFunction · 0.70
targetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…