Skip to content

Expose stack trace on PageErrorEventArgs - #3612

Merged
kblok merged 1 commit into
masterfrom
expose-page-error-stack-trace
Oct 10, 2026
Merged

kblok merged 1 commit into
masterfrom
expose-page-error-stack-trace

Conversation

@kblok

@kblok kblok commented Oct 9, 2026

Copy link
Copy Markdown
Member

Page errors only gave a message string, so callers had to parse raw Runtime.exceptionThrown messages to get the frames. PageErrorEventArgs now has StackTrace, a list of ConsoleMessageLocation with the innermost frame first, the same type ConsoleMessage uses. It is filled for CDP and for BiDi javascript log entries.

ConsoleMessageLocation also gets FunctionName, which console stack traces now fill in too. It is not part of equality, so existing location comparisons are unchanged. The change is additive.

Fixes #3611. Bumps the version to 25.13.1.

🤖 Generated with Claude Code

…ssageLocation (#3611)

Bump version to 25.13.1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kblok

kblok commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

@jsneedles will this help?

@jsneedles

Copy link
Copy Markdown
Contributor

@jsneedles will this help?

YES! this is awesome, thanks so much 🙏

@kblok
kblok merged commit 956fe4d into master Oct 10, 2026
17 checks passed
@kblok
kblok deleted the expose-page-error-stack-trace branch October 10, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose stack trace (and exception details) on PageErrorEventArgs

2 participants