1

Closed

Debugging hangs if break occurs during socket send

description

We are taking the socket lock to send the break and its already held attempting to output to VS.

Repro:
Enable debugging of the Python standard library
Run code and hit break all
Closed Aug 12 at 6:02 PM by Zooba

comments

huguesv wrote Sep 20, 2013 at 7:43 PM

Trying to verify this fix.

Works well on my VS 2012 local machine, but on a (slower) VM with VS 2013, it's not as great. Most of the time it breaks properly, many times it can't get a call stack, and one time it froze.

huguesv wrote Sep 20, 2013 at 7:44 PM

I have the output window opened in both cases.
The code I'm using:
print('Hello World')
import os

for i in range(5111222):
    x = i / 6
    print(x)
    print(os.path)

huguesv wrote Sep 20, 2013 at 7:47 PM

Reopening, reproduced it twice so far.