name: "JavaScript Stepping Test"
description: "Verifies stepping commands work correctly in JavaScript"
target:
program: "../fixtures/simple.js"
args: []
adapter: "js-debug"
stop_on_entry: true
steps:
- action: command
command: "break simple.js:31"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 15
expect:
reason: "breakpoint"
file: "simple.js"
- action: command
command: "step"
- action: await
timeout: 10
expect:
reason: "step"
- action: inspect_stack
asserts:
- index: 0
function: "add"
- action: command
command: "finish"
- action: await
timeout: 10
expect:
reason: "step"
- action: inspect_stack
asserts:
- index: 0
function: "main"
- action: command
command: "next"
- action: await
timeout: 10
expect:
reason: "step"
- action: inspect_stack
asserts:
- index: 0
function: "main"
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "terminated"