You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Environment
Steps to Reproduce
python -m debugpy --listen 127.0.0.1:4022 C:\Users\vyizh12\source\repos\PythonApplication1\PythonApplication1\PythonApplication1.py
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
The text was updated successfully, but these errors were encountered: