Skip to content

Commit ce27f37

Browse files
committed
flush and ignore linebreaks
1 parent c062b7f commit ce27f37

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/test/debugger/attach.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ suite('Attach Debugger', () => {
7373
const secondOutputReceived = expectedOutputs[2].deferred.promise;
7474

7575
result.out.subscribe(output => {
76-
if (expectedOutputs[0].value === output.out) {
76+
if (expectedOutputs[0].value === output.out.trim()) {
7777
expectedOutputs.shift()!.deferred.resolve();
78+
} else {
79+
console.error(output.out);
7880
}
7981
}, ex => {
8082
completed.reject(ex);

src/testMultiRootWkspc/workspace5/remoteDebugger.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
import ptvsd
33
import time
44

5-
sys.stdout.write('start')
5+
print('start')
66
sys.stdout.flush()
77
address = ('0.0.0.0', int(sys.argv[1]))
88
ptvsd.enable_attach('super_secret', address)
99
ptvsd.wait_for_attach()
1010

11-
sys.stdout.write(name)
11+
sys.stdout.write('Peter Smith')
1212
sys.stdout.flush()
13+
time.sleep(0.5)
1314

1415
sys.stdout.write('end')
1516
sys.stdout.flush()
17+
time.sleep(0.5)

0 commit comments

Comments
 (0)