Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit faae52f

Browse files
committed
Add screenshots to readme
They demonstrate the benefits of using this panic hook.
1 parent dd95b4d commit faae52f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ When an error is reported with `console.error`, browser devtools and node.js
1313
will typically capture a stack trace and display it with the logged error
1414
message.
1515

16+
Without `console_error_panic_hook` you just get something like *RuntimeError: Unreachable executed*
17+
18+
![Console without panic hook](without_panic_hook.png)
19+
20+
but with this panic hook installed you will see the panic message
21+
22+
![Console with panic hook set up](with_panic_hook.png)
23+
1624
### Usage
1725

1826
There are two ways to install this panic hook.

‎with_panic_hook.png‎

78 KB
Loading[フレーム]

‎without_panic_hook.png‎

28.2 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /