Debugging
The Cloudflare team published a great blog post on how to debug Cloudflare Workers. PartyKit utilizes Cloudflare Workers under the hood, so the same debugging techniques apply.
Common debugging methods:
- Log information in the Console
- Debug with breakpoints in Visual Studio Code
- Debug with breakpoints in IntelliJ IDEA (and other JetBrains IDEs)
- Analyse network requests, CPU usage and heap snapshots using DevTools