PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

The VS crashed after choose the progress when remote debug.

Open linette-zyy opened this issue 1 year ago • 0 comments

Environment image

Steps to Reproduce

  1. 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()
  1. 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
  2. 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. Scrashed

Events log Events log.zip

linette-zyy avatar Sep 19 '23 07:09 linette-zyy