2018-06-03 05:09:41 +00:00
|
|
|
Tests for break on exception.
|
2016-10-19 02:00:21 +00:00
|
|
|
|
2018-06-03 05:09:41 +00:00
|
|
|
Running test: testPauseOnInitialState
|
2016-10-19 02:00:21 +00:00
|
|
|
|
2018-06-03 05:09:41 +00:00
|
|
|
evaluate 'caught()'..
|
2016-10-19 02:00:21 +00:00
|
|
|
|
2018-06-03 05:09:41 +00:00
|
|
|
evaluate 'uncaught()'..
|
2016-10-19 02:00:21 +00:00
|
|
|
|
2018-06-03 05:09:41 +00:00
|
|
|
evaluate 'uncaughtFinally()'..
|
|
|
|
|
|
|
|
evaluate 'caughtFinally()'..
|
|
|
|
|
|
|
|
Running test: testPauseOnExceptionOff
|
|
|
|
|
|
|
|
evaluate 'caught()'..
|
|
|
|
|
|
|
|
evaluate 'uncaught()'..
|
|
|
|
|
|
|
|
evaluate 'uncaughtFinally()'..
|
|
|
|
|
|
|
|
evaluate 'caughtFinally()'..
|
|
|
|
|
|
|
|
Running test: testBreakOnUncaughtException
|
|
|
|
|
|
|
|
evaluate 'caught()'..
|
|
|
|
|
|
|
|
evaluate 'uncaught()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
evaluate 'uncaughtFinally()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
evaluate 'caughtFinally()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testBreakOnAll
|
|
|
|
|
|
|
|
evaluate 'caught()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : false
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
evaluate 'uncaught()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
evaluate 'uncaughtFinally()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
evaluate 'caughtFinally()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testTryFinallyOriginalMessage
|
|
|
|
|
|
|
|
evaluate '
|
|
|
|
try {
|
|
|
|
throw 1;
|
|
|
|
} finally {
|
|
|
|
}
|
|
|
|
'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
description : 1
|
|
|
|
type : number
|
|
|
|
uncaught : true
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testPromiseRejectedByCallback
|
|
|
|
|
|
|
|
evaluate '
|
|
|
|
function fun() { eval("throw 'rejection';") }
|
|
|
|
var p = new Promise(function(res, rej) { fun(); res(); });
|
|
|
|
var r;
|
|
|
|
p.then(() => { r = 'resolved'; }, (e) => { r = 'rejected' + e; });
|
|
|
|
'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
type : string
|
|
|
|
uncaught : true
|
|
|
|
value : rejection
|
|
|
|
}
|
|
|
|
r =
|
|
|
|
{
|
|
|
|
type : string
|
|
|
|
value : rejectedrejection
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testBreakOnExceptionAfterReconnect
|
|
|
|
|
|
|
|
evaluate 'f()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
className : Error
|
|
|
|
description : Error at f (<anonymous>:106:144) at <anonymous>:137:154
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
uncaught : true
|
|
|
|
}
|
|
|
|
|
|
|
|
reconnect..
|
|
|
|
|
|
|
|
evaluate 'f()'..
|
|
|
|
paused on exception:
|
|
|
|
{
|
|
|
|
className : Error
|
|
|
|
description : Error at f (<anonymous>:106:144) at <anonymous>:137:154
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
uncaught : true
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testBreakOnExceptionInSilentMode
|
|
|
|
evaluate 'caught()'
|
|
|
|
evaluate 'uncaught()'
|
|
|
|
evaluate 'uncaughtFinally()'
|
|
|
|
evaluate 'caughtFinally()'
|