PTVS
PTVS copied to clipboard
The VS crashed after choose the progress when remote debug.
Environment
Steps to Reproduce
- Create a python file and input below codes
input('>')
from math import cos, radians
# Create a string with spaces proportional to a cosine of x in degrees
def make_dot_string(x):
rad = radians(x) # cos works with radians
numspaces = int(20 * cos(radians(x)) + 20) # scale to 0-40 spaces
st = ' ' * numspaces + 'o' # place 'o' after the spaces
return st
def main():
for i in range(0, 1800, 12):
s = make_dot_string(i)
print(s)
main()
- In command prompt (right-click the python environment and select "Open Command Prompt Here…"), execute:
python -m debugpy --listen 127.0.0.1:4022 C:\Users\vyizh12\source\repos\PythonApplication1\PythonApplication1\PythonApplication1.py
- Launch VS and Debug > Attach to Process, in dialog: a. Select connection type with Python remote(debugpy) b. Input 127.0.0.1:4022 in Connection target and click "Enter" Then to click Refresh
Additional context and screenshots
The VS crashed.
Events log Events log.zip