-
-
Notifications
You must be signed in to change notification settings - Fork 5
Debugging Node.JS
Peter Chapman edited this page Jan 27, 2025
·
2 revisions
Depending on the environment, there are different levels of debugging that can be performed on the Realtime Server
You can enable debugging of the Realtime Server by adding the following entry to your usersecrets.json file:
"node-options": "--inspect=9230"
On QA and production, you are limited to generating heap snapshots and CPU profiles for 30 seconds at a time.
Generating a heap snapshot and CPU profile:
- Get the process id of node:
ps aux | grep node
- Send the USR2 signal to the node process:
kill -USR2 {process_id_here}
These will be created in the app
directory, and named:
- scriptureforge.heapsnapshot
- profile.cpuprofile
Download them via SCP once created.