wasm-conditional-breakpoints-expected.txt 1.9 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
Test conditional breakpoints in wasm.

Running test: test
Instantiating.
Waiting for wasm script.
Got wasm script: wasm://wasm/f00dbc56
Setting breakpoint at offset 34, condition "false"
{
    id : <messageId>
    result : {
        actualLocation : {
            columnNumber : 34
            lineNumber : 0
            scriptId : <scriptId>
        }
        breakpointId : <breakpointId>
    }
}
Setting breakpoint at offset 41, condition "true"
{
    id : <messageId>
    result : {
        actualLocation : {
            columnNumber : 41
            lineNumber : 0
            scriptId : <scriptId>
        }
        breakpointId : <breakpointId>
    }
}
31
Setting breakpoint at offset 46, condition "$var0.value==3"
32 33 34 35 36 37 38 39 40 41 42 43 44
{
    id : <messageId>
    result : {
        actualLocation : {
            columnNumber : 46
            lineNumber : 0
            scriptId : <scriptId>
        }
        breakpointId : <breakpointId>
    }
}
Calling fib(5)
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
45
$var0: 5 (i32)
46
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
47
$var0: 4 (i32)
48
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
49
$var0: 3 (i32)
50
Script wasm://wasm/f00dbc56 byte offset 46: Wasm opcode 0x10 (kExprCallFunction)
51
$var0: 3 (i32)
52
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
53
$var0: 2 (i32)
54
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
55
$var0: 1 (i32)
56
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
57
$var0: 2 (i32)
58
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
59
$var0: 3 (i32)
60
Script wasm://wasm/f00dbc56 byte offset 46: Wasm opcode 0x10 (kExprCallFunction)
61
$var0: 3 (i32)
62
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
63
$var0: 2 (i32)
64
Script wasm://wasm/f00dbc56 byte offset 41: Wasm opcode 0x0d (kExprBrIf)
65
$var0: 1 (i32)
66
fib returned!