forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix debug adapter `Attach` test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 14 additions & 11 deletions
25
src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import sys | ||
import time | ||
time.sleep(2) | ||
sys.stdout.write('this is stdout') | ||
sys.stdout.flush() | ||
sys.stderr.write('this is stderr') | ||
sys.stderr.flush() | ||
# Give the debugger some time to add a breakpoint. | ||
time.sleep(5) | ||
for i in range(1): | ||
time.sleep(0.5) | ||
pass | ||
|
||
print('this is print') | ||
def main(): | ||
sys.stdout.write('this is stdout') | ||
sys.stdout.flush() | ||
sys.stderr.write('this is stderr') | ||
sys.stderr.flush() | ||
# Give the debugger some time to add a breakpoint. | ||
time.sleep(5) | ||
for i in range(1): | ||
time.sleep(0.5) | ||
pass | ||
|
||
print('this is print') | ||
|
||
main() |