@@ -156,15 +156,15 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
156
156
} ) ;
157
157
test ( 'Should break at print statement (line 3)' , async ( ) => {
158
158
const launchArgs = buildLauncArgs ( 'sample2.py' , false ) ;
159
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
159
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
160
160
await debugClient . hitBreakpoint ( launchArgs , breakpointLocation ) ;
161
161
} ) ;
162
162
test ( 'Should kill python process when ending debug session' , async function ( ) {
163
163
if ( debuggerType === 'python' ) {
164
164
return this . skip ( ) ;
165
165
}
166
166
const launchArgs = buildLauncArgs ( 'sample2.py' , false ) ;
167
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
167
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
168
168
const processPromise = debugClient . waitForEvent ( 'process' ) as Promise < DebugProtocol . ProcessEvent > ;
169
169
await debugClient . hitBreakpoint ( launchArgs , breakpointLocation ) ;
170
170
const processInfo = await processPromise ;
@@ -186,7 +186,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
186
186
debugClient . waitForEvent ( 'initialized' )
187
187
] ) ;
188
188
189
- const breakpointLocation = { path : path . join ( debugFilesPath , 'forever.py' ) , column : 0 , line : 5 } ;
189
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'forever.py' ) , column : 1 , line : 5 } ;
190
190
await debugClient . setBreakpointsRequest ( {
191
191
lines : [ breakpointLocation . line ] ,
192
192
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column , condition : 'i == 3' } ] ,
@@ -216,7 +216,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
216
216
debugClient . waitForEvent ( 'initialized' )
217
217
] ) ;
218
218
219
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
219
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
220
220
await debugClient . setBreakpointsRequest ( {
221
221
lines : [ breakpointLocation . line ] ,
222
222
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
@@ -253,7 +253,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
253
253
debugClient . waitForEvent ( 'initialized' )
254
254
] ) ;
255
255
256
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
256
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
257
257
await debugClient . setBreakpointsRequest ( {
258
258
lines : [ breakpointLocation . line ] ,
259
259
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
@@ -287,7 +287,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
287
287
debugClient . waitForEvent ( 'initialized' )
288
288
] ) ;
289
289
290
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
290
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
291
291
await debugClient . setBreakpointsRequest ( {
292
292
lines : [ breakpointLocation . line ] ,
293
293
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
@@ -313,7 +313,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
313
313
debugClient . waitForEvent ( 'initialized' )
314
314
] ) ;
315
315
316
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
316
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
317
317
await debugClient . setBreakpointsRequest ( {
318
318
lines : [ breakpointLocation . line ] ,
319
319
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
@@ -325,15 +325,15 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
325
325
await debugClient . assertStoppedLocation ( 'breakpoint' , breakpointLocation ) ;
326
326
327
327
await debugClient . nextRequest ( { threadId } ) ;
328
- const functionLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 7 } ;
328
+ const functionLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 7 } ;
329
329
await debugClient . assertStoppedLocation ( 'step' , functionLocation ) ;
330
330
331
331
await debugClient . nextRequest ( { threadId } ) ;
332
- const functionInvocationLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 11 } ;
332
+ const functionInvocationLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 11 } ;
333
333
await debugClient . assertStoppedLocation ( 'step' , functionInvocationLocation ) ;
334
334
335
335
await debugClient . nextRequest ( { threadId } ) ;
336
- const printLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 13 } ;
336
+ const printLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 13 } ;
337
337
await debugClient . assertStoppedLocation ( 'step' , printLocation ) ;
338
338
} ) ;
339
339
test ( 'Test stepin and stepout' , async ( ) => {
@@ -345,7 +345,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
345
345
debugClient . waitForEvent ( 'initialized' )
346
346
] ) ;
347
347
348
- const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 5 } ;
348
+ const breakpointLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 5 } ;
349
349
await debugClient . setBreakpointsRequest ( {
350
350
lines : [ breakpointLocation . line ] ,
351
351
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
@@ -357,22 +357,22 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
357
357
const threadId = ( ( await threadIdPromise ) as ThreadEvent ) . body . threadId ;
358
358
359
359
await debugClient . nextRequest ( { threadId } ) ;
360
- const functionLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 7 } ;
360
+ const functionLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 7 } ;
361
361
await debugClient . assertStoppedLocation ( 'step' , functionLocation ) ;
362
362
363
363
await debugClient . nextRequest ( { threadId } ) ;
364
- const functionInvocationLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 11 } ;
364
+ const functionInvocationLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 11 } ;
365
365
await debugClient . assertStoppedLocation ( 'step' , functionInvocationLocation ) ;
366
366
367
367
await debugClient . stepInRequest ( { threadId } ) ;
368
- const loopPrintLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 8 } ;
368
+ const loopPrintLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 8 } ;
369
369
await debugClient . assertStoppedLocation ( 'step' , loopPrintLocation ) ;
370
370
371
371
await debugClient . stepOutRequest ( { threadId } ) ;
372
372
await debugClient . assertStoppedLocation ( 'step' , functionInvocationLocation ) ;
373
373
374
374
await debugClient . nextRequest ( { threadId } ) ;
375
- const printLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 0 , line : 13 } ;
375
+ const printLocation = { path : path . join ( debugFilesPath , 'sample2.py' ) , column : 1 , line : 13 } ;
376
376
await debugClient . assertStoppedLocation ( 'step' , printLocation ) ;
377
377
} ) ;
378
378
test ( 'Test pausing' , async function ( ) {
@@ -415,7 +415,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
415
415
debugClient . waitForEvent ( 'initialized' )
416
416
] ) ;
417
417
const pythonFile = path . join ( debugFilesPath , 'multiThread.py' ) ;
418
- const breakpointLocation = { path : pythonFile , column : 0 , line : 11 } ;
418
+ const breakpointLocation = { path : pythonFile , column : 1 , line : 11 } ;
419
419
await debugClient . setBreakpointsRequest ( {
420
420
lines : [ breakpointLocation . line ] ,
421
421
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
@@ -438,7 +438,7 @@ const EXPERIMENTAL_DEBUG_ADAPTER = path.join(__dirname, '..', '..', 'client', 'd
438
438
debugClient . waitForEvent ( 'initialized' )
439
439
] ) ;
440
440
const pythonFile = path . join ( debugFilesPath , 'stackFrame.py' ) ;
441
- const breakpointLocation = { path : pythonFile , column : 0 , line : 5 } ;
441
+ const breakpointLocation = { path : pythonFile , column : 1 , line : 5 } ;
442
442
await debugClient . setBreakpointsRequest ( {
443
443
lines : [ breakpointLocation . line ] ,
444
444
breakpoints : [ { line : breakpointLocation . line , column : breakpointLocation . column } ] ,
0 commit comments