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
# Rust Hello World Test
# Tests Rust debugging with lldb-dap or codelldb
name: "Rust Hello World Test"
description: "Verifies basic Rust debugging functionality"
# Compile the test program
setup:
- shell: "rustc -g tests/e2e/hello_world.rs -o tests/e2e/test_rs"
# Debug target configuration
target:
program: "../e2e/test_rs"
args:
stop_on_entry: true
# Test steps
steps:
# 1. Set a breakpoint at main
- action: command
command: "break main"
expect:
success: true
# 2. Continue to the breakpoint
- action: command
command: "continue"
# 3. Wait for stop at breakpoint
- action: await
timeout: 10
expect:
reason: "breakpoint"
# 4. Step into
- action: command
command: "step"
# 5. Wait for step
- action: await
timeout: 10
expect:
reason: "step"
# 6. Check stack trace
- action: inspect_stack
asserts:
- index: 0
function: "main"
# 7. Continue to exit
- action: command
command: "continue"
# 8. Wait for program exit
- action: await
timeout: 10
expect:
reason: "exited"