Skip to content

Commit

Permalink
Add why-is-node-running to be able to attach a debugger and debug h…
Browse files Browse the repository at this point in the history
…angs
  • Loading branch information
steveluscher committed Oct 12, 2024
1 parent 7f93c5d commit ad5f2d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@solana/transactions": "2.0.0-canary-20241012053956"
},
"devDependencies": {
"@types/node": "^20.12.7"
"@types/node": "^20.12.7",
"why-is-node-running": "^3.2.0"
}
}
4 changes: 4 additions & 0 deletions ping-thing-client.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import whyIsNodeRunning from 'why-is-node-running';
// To access this at any time, attach the debugger, press pause, and type `whyIsNodeRunning()`.
globalThis.whyIsNodeRunning = whyIsNodeRunning;

import {
createTransactionMessage,
pipe,
Expand Down

0 comments on commit ad5f2d8

Please sign in to comment.