MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _check_basic_tracing

Function _check_basic_tracing

tests_python/test_utilities.py:341–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339
340
341def _check_basic_tracing():
342 import pydevd_tracing
343
344 # Note: run this test in a separate process so that it doesn't mess with any current tracing
345 # in our current process.
346 called = [0]
347
348 def tracing_func(frame, event, args):
349 called[0] = called[0] + 1
350 return tracing_func
351
352 assert pydevd_tracing.set_trace_to_threads(tracing_func) == 0
353
354 def foo():
355 pass
356
357 foo()
358 assert called[0] > 2
359
360
361@pytest.mark.skipif(not IS_CPYTHON, reason="Functionality to trace other threads requires CPython.")

Callers

nothing calls this directly

Calls 1

fooFunction · 0.70

Tested by

no test coverage detected