question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger hangs and then silently exits

See original GitHub issue

Environment data

VS Code version: 1.19.0 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: macOS High Sierra 10.13.2

Actual behavior

Debugger hangs when trying to step over a line of code instantiating an ITK vector object (seems to be a simple wrapper around a std::vector<>). Eventually the debugger silently stops with no other output.

Expected behavior

Debugger should step over this code and the ITK vector should be inspectable as an initialized vector of zeros. I believe this is a problem with the VSCode python extension because this code can be debugged in the same environment using Pycharm.

Steps to reproduce:

pip install itk==4.12.0.post1

image

Start debugger, run to break point on line 4. Attempt to step over to line 5. The debugger will then hang and eventually exit.

Logs

Output from Python output panel

Hello

Output from Console window (Help->Developer Tools menu)

The console in Developer Tools remains blank.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, May 31, 2018

This has been resolved upstream.

1reaction
DonJayamannecommented, May 8, 2018

I’ve filed an issue upstream https://github.com/Microsoft/ptvsd/issues/414 The problem is with the debugger, i believe when attempting to evaluate the local variables (in this case itk_vector).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I debug a win32 process that unexpectedly ...
Two reasons: 1. The application jumps through several hoops to correctly shut down some network-attached hardware when exiting normally. The ...
Read more >
Debugger hangs or quits responding after a breakpoint is hit ...
I have to stop and restart my server. Two: Resuming the program appears to work successfully, but the debugger will never hit the...
Read more >
Silent crash when pause or breakpoint with debugger
But when I pause or hit a breakpoint, the project crashes a few second later. I reverted my changes using git and the...
Read more >
How to debug silent crashes in .Net - Functional Fun
All you need to do is set create a key at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\[Your Application Exe ...
Read more >
Monitoring Silent Process Exit - Windows drivers
Beginning with Windows 7, you can use the Silent Process Exit tab in GFlags to enter the name of a process that you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found