fabioz / PyDev.Debugger

Sources for the debugger used in PyDev, PyCharm and VSCode Python
Eclipse Public License 1.0
419 stars 121 forks source link

pydevd - how to intercept mode switch - running, paused #279

Open nathan-retrace opened 2 months ago

nathan-retrace commented 2 months ago

I'm building a Python debugging extension and I'd like it to work with Pydevd. It'd be useful to be able to add a callback which is called just before the main program is paused and control handed to the debugger, and called just before resume when the program is resumed. Is there a callback interface to allow this, or what approach is suggested?

Looking for advice on approach