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
Copy file name to clipboardExpand all lines: docs/python/debugging-cross-platform-remote.md
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -43,26 +43,26 @@ For details on creating a firewall rule for an Azure VM, see [Opening ports to a
43
43
1. On the remote computer, create a Python file called `guessing-game.py` with the following code:
44
44
45
45
```python
46
-
import random
47
-
48
-
guesses_made =0
49
-
name =input('Hello! What is your name?\n')
50
-
number = random.randint(1, 20)
51
-
print('Well, {0}, I am thinking of a number between 1 and 20.'.format(name))
52
-
53
-
while guesses_made <6:
54
-
guess =int(input('Take a guess: '))
55
-
guesses_made +=1
56
-
if guess < number:
57
-
print('Your guess is too low.')
58
-
if guess > number:
59
-
print('Your guess is too high.')
60
-
if guess == number:
61
-
break
62
-
if guess == number:
63
-
print('Good job, {0}! You guessed my number in {1} guesses!'.format(name, guesses_made))
64
-
else:
65
-
print('Nope. The number I was thinking of was {0}'.format(number))
46
+
import random
47
+
48
+
guesses_made =0
49
+
name =input('Hello! What is your name?\n')
50
+
number = random.randint(1, 20)
51
+
print('Well, {0}, I am thinking of a number between 1 and 20.'.format(name))
52
+
53
+
while guesses_made <6:
54
+
guess =int(input('Take a guess: '))
55
+
guesses_made +=1
56
+
if guess < number:
57
+
print('Your guess is too low.')
58
+
if guess > number:
59
+
print('Your guess is too high.')
60
+
if guess == number:
61
+
break
62
+
if guess == number:
63
+
print('Good job, {0}! You guessed my number in {1} guesses!'.format(name, guesses_made))
64
+
else:
65
+
print('Nope. The number I was thinking of was {0}'.format(number))
66
66
```
67
67
68
68
1. Install the `ptvsd` package into your environment using `pip3 install ptvsd`. (Note: it's a good idea to record the version of ptvsd that's installed in case you need it for troubleshooting; the [ptvsd listing](https://pypi.python.org/pypi/ptvsd) also shows available versions.)
0 commit comments