@@ -1266,20 +1266,15 @@ const testAll = (ctx: Mocha.Context, isDlvDap: boolean) => {
1266
1266
} ;
1267
1267
const debugConfig = await initializeDebugConfig ( config ) ;
1268
1268
await Promise . all ( [
1269
- dc
1270
- . waitForEvent ( 'initialized' )
1271
- . then ( ( ) => {
1272
- return dc . setExceptionBreakpointsRequest ( {
1273
- filters : [ 'all' ]
1274
- } ) ;
1275
- } )
1276
- . then ( ( ) => {
1277
- return dc . configurationDoneRequest ( ) ;
1278
- } ) ,
1279
-
1269
+ dc . configurationSequence ( ) ,
1280
1270
dc . launch ( debugConfig ) ,
1281
-
1282
- dc . assertStoppedLocation ( 'panic' , { } )
1271
+ dc . waitForEvent ( 'stopped' ) . then ( ( event ) => {
1272
+ assert (
1273
+ event . body . reason === 'runtime error' ||
1274
+ event . body . reason === 'panic' ||
1275
+ event . body . reason === 'exception'
1276
+ ) ;
1277
+ } )
1283
1278
] ) ;
1284
1279
} ) ;
1285
1280
@@ -1303,7 +1298,11 @@ const testAll = (ctx: Mocha.Context, isDlvDap: boolean) => {
1303
1298
dc . configurationSequence ( ) ,
1304
1299
dc . launch ( debugConfig ) ,
1305
1300
dc . waitForEvent ( 'stopped' ) . then ( ( event ) => {
1306
- assert ( event . body . reason === 'runtime error' || event . body . reason === 'panic' ) ;
1301
+ assert (
1302
+ event . body . reason === 'runtime error' ||
1303
+ event . body . reason === 'panic' ||
1304
+ event . body . reason === 'exception'
1305
+ ) ;
1307
1306
} )
1308
1307
] ) ;
1309
1308
} ) ;
@@ -1331,7 +1330,11 @@ const testAll = (ctx: Mocha.Context, isDlvDap: boolean) => {
1331
1330
await Promise . all ( [
1332
1331
dc . nextRequest ( { threadId : 1 } ) ,
1333
1332
dc . waitForEvent ( 'stopped' ) . then ( ( event ) => {
1334
- assert ( event . body . reason === 'runtime error' || event . body . reason === 'panic' ) ;
1333
+ assert (
1334
+ event . body . reason === 'runtime error' ||
1335
+ event . body . reason === 'panic' ||
1336
+ event . body . reason === 'exception'
1337
+ ) ;
1335
1338
} )
1336
1339
] ) ;
1337
1340
} ) ;
0 commit comments