JavaScript debugging tips
wh bridge - Various JS/TS debugging tools
wh debug - Global and HareScipt debugging
You can use Chrome's develope tools to debug JavaScript/TypeScript applications:
- Use
wh bridge list-processesto list all JavaScript processes known to WebHare. - Use
wh bridge list-workers <pid>to list all workers inside a process - Use
wh bridge inspect <pid>to inspect the main thread, orwh bridge inspect <pid>.<workernr>to inspect a specific worker. This will give you an URL you can use inchrome://inspect/#workers - Use
wh bridge inspect-in-chrome <pid>to attempt to immediately open Canary or Chrome devtools.
We recommend using Canary as eg. memory profiling seems to work better than in normal Chrome