MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / new_f

Function new_f

_pydevd_bundle/pydevd_stackless.py:326–338  ·  view source on GitHub ↗
(old_f, args, kwargs)

Source from the content-addressed store, hash-verified

324 f = self.tempval
325
326 def new_f(old_f, args, kwargs):
327 debugger = get_global_debugger()
328 if debugger is not None:
329 debugger.enable_tracing()
330
331 debugger = None
332
333 # Remove our own traces :)
334 self.tempval = old_f
335 register_tasklet_info(self)
336
337 # Hover old_f to see the stackless being created and *args and **kwargs to see its parameters.
338 return old_f(*args, **kwargs)
339
340 # This is the way to tell stackless that the function it should execute is our function, not the original one. Note:
341 # setting tempval is the same as calling bind(new_f), but it seems that there's no other way to get the currently

Callers

nothing calls this directly

Calls 3

get_global_debuggerFunction · 0.85
register_tasklet_infoFunction · 0.85
enable_tracingMethod · 0.80

Tested by

no test coverage detected