break-on-exception-expected.txt 2.54 KB
Newer Older
1
Tests for break on exception.
2

3
Running test: testPauseOnInitialState
4

5
evaluate 'caught()'..
6

7
evaluate 'uncaught()'..
8

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
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()'