diff options
Diffstat (limited to 'build')
| -rw-r--r-- | build/debugger.zig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/debugger.zig b/build/debugger.zig index 9779ecd..d164072 100644 --- a/build/debugger.zig +++ b/build/debugger.zig @@ -92,6 +92,20 @@ pub fn add(ctx: Ctx) void { // ... which the library's tests read too. paths.addOptionPath("fib_recording", recording); + // From a place on, by instruction: what ran before fib is no moment but its syscalls. + const from = b.addRunArtifact(ctx.exe); + from.addArgs(&.{ "record", "--from", "fib", "--steps", "64", "-o" }); + const from_recording = from.addOutputFileArg("from.ztrace"); + from.addArg("--"); + from.addArtifactArg(fib); + from.addArg("10"); + from.expectStdErrMatch(" 64 moments, "); + const from_show = b.addRunArtifact(ctx.exe); + from_show.addArg("show"); + from_show.addFileArg(from_recording); + from_show.expectStdOutMatch(" 1 breakpoint\n"); + step.dependOn(&from_show.step); + // A source line a moment, a watched global, to the exit code. const lines = b.addRunArtifact(ctx.exe); lines.addArgs(&.{ "record", "--by", "line", "-w", "dist", "-w", "queue,8", "-o" }); |
