Attempt to add more context to debug logs.

1 - On `unkown global property`, include the stack trace (this might be WAY too
verbose)

2 - On script get, include stack trace (when available)

3 - On script get, include referrer

4 - Stack traces will now include the script name/src when available
This commit is contained in:
Karl Seguin
2025-10-06 16:56:54 +08:00
parent 207f0655dd
commit 9cb37dc011
7 changed files with 41 additions and 49 deletions

View File

@@ -443,7 +443,6 @@ const LineWriter = struct {
}
};
pub fn debugCallback(_: *c.CURL, msg_type: c.curl_infotype, raw: [*c]u8, len: usize, _: *anyopaque) callconv(.c) void {
const data = raw[0..len];
switch (msg_type) {