microsoft/debugpy

Support stopping / turning off / deactivating debugpy

yang opened this issue · 0 comments

yang commented

Debugpy imposes a performance impact. Once you start debugpy in a process, the process is forever slow thereafter. So outside of the most performance insensitive of applications, deciding to use debugpy is not an easy decision—you are consigning that process to be killed.

A way to stop or disable debugpy would make it practical to use in many more settings (including production settings).

(Ideally this would be the default behavior—when you listen for debuggers, it doesn't actually do anything to make the program slower. But not sure if I'm missing anything there.)