breakpoints-expected.txt 1.15 KB
Newer Older
1 2 3 4 5 6 7 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
Checks breakpoints.

Running test: testRemoveBreakpoint
Debugger.removeBreakpoint when agent is disabled:
{
    error : {
        code : -32000
        message : Debugger agent is not enabled
    }
    id : <messageId>
}
Remove breakpoint with invalid breakpoint id:
{
    id : <messageId>
    result : {
    }
}
{
    id : <messageId>
    result : {
    }
}

Running test: testSetBreakpointByUrl
Adding conditional (arg === 1) breakpoint
evaluating foo1(0):
  not paused
evaluating foo1(1):
  hit expected breakpoint

Evaluating another script with the same url
evaluating foo2(0):
  not paused
evaluating foo2(1):
  hit expected breakpoint

Removing breakpoint
evaluating foo1(1):
  not paused
evaluating foo2(1):
  not paused

Adding breakpoint back
evaluating foo1(0):
  not paused
evaluating foo1(1):
  hit expected breakpoint

Disabling debugger agent
evaluating foo1(1):
  not paused
evaluating foo2(1):
  not paused

Enabling debugger agent
evaluating foo1(1):
  not paused
evaluating foo2(1):
  not paused

Running test: testSetBreakpointInScriptsWithDifferentOffsets
Adding breakpoint
evaluating foo1(0):
  hit expected breakpoint
evaluating foo2(0):
  not paused