is it possible to check whether PTVS Python debugger is attached to process?
See original GitHub issueThe equivalent in C# is like this:
while (!Debugger.IsAttached)
{
Thread.Sleep(100);
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
How to check whether debugger of Python Tools for Visual ...
How to check whether debugger of Python Tools for Visual Studio 2010 is attached to current process? IsDebuggerPresent and ...
Read more >Debug Python code - Visual Studio (Windows)
Visual Studio provides rich debugging for Python code, including setting breakpoints, stepping, inspecting values, looking at exceptions, ...
Read more >Python Tools for Visual Studio
In Visual Studio, select Debug > Attach to Process to display the Attach to Process window, then: ... Once the debugger attaches, you...
Read more >Debugging configurations for Python apps in ...
Selecting the Attach using Process ID one yields the following result: Added a configuration. See Debugging specific app types for details on all...
Read more >Debug Your Python Excel Add-In
A guide to debugging Python code running in Excel with the most popular IDEs, including PyCharm, Eclipse, Visual Studio (PTVS) and VS Code....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This isn’t guaranteed to keep working, but for currently released versions:
@zooba I just tested and sys.gettrace() is working! This is very handy:
https://github.com/pythonnet/pythonnet/issues/332#issuecomment-282608123