mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
cdp: use .zig-cache to save js script debug files
This commit is contained in:
@@ -109,7 +109,7 @@ fn logInspector(cmd: anytype, action: anytype) !void {
|
|||||||
const id = cmd.input.id orelse return error.RequiredId;
|
const id = cmd.input.id orelse return error.RequiredId;
|
||||||
const name = try std.fmt.allocPrint(cmd.arena, "id_{d}.js", .{id});
|
const name = try std.fmt.allocPrint(cmd.arena, "id_{d}.js", .{id});
|
||||||
|
|
||||||
var dir = try std.fs.cwd().makeOpenPath("zig-cache/tmp", .{});
|
var dir = try std.fs.cwd().makeOpenPath(".zig-cache/tmp", .{});
|
||||||
defer dir.close();
|
defer dir.close();
|
||||||
|
|
||||||
const f = try dir.createFile(name, .{});
|
const f = try dir.createFile(name, .{});
|
||||||
|
|||||||
Reference in New Issue
Block a user