superfly / fly

Deploy app servers close to your users. Package your app as a Docker image, and launch it in 17 cities with one simple CLI.
https://fly.io
985 stars 48 forks source link

Debugging through a CLI #148

Closed jeromegn closed 5 years ago

jeromegn commented 6 years ago

With the coming switch to Rust + ChakraCore comes a clearer and more flexible interface for debugging JavaScript. In constrast, V8's debugging interface is not very well documented and only works in Chrome or Opera (there's also an API built in C++ that works with JSON message passing, but it's a bit hard to use, not very well documented.)

ChakraCore offers a pretty simple API for debugging, it would be possible to use it directly from the CLI.

Features:

Fun side effect: ChakraCore has something called "Time Travel Debugging". It allows you to step back instead of only stepping forward.