Closed heymatthew closed 5 years ago
This was an idea I threw together because I really wanted a REPL in the project to figure out the interactions between components. It turned out to be clunky and didn't generate much interest.
I'm closing this down because it's a stale concept and pretty easy to throw together again if you want to do this kind of debugging.
As this codebase is rather dense and requires a lot of setup to have a single stood up server, it's important to get a feel for how the code is executing.
This PR introduces a new make target to allow you to open an interactive debugger against your local kansa to inspect the running code. This works for OSX.
To get a debugger open
make debug
from the root of the projectdocker logs -f kansa_kansa_1 | grep "Debugger listening on ws://"
chrome-devtools://devtools/bundled/js_app.html?ws=localhost:9229/e565eb6d-48ff-4dbe-8070-b6de4c30e2bd
From there, you'll have an interactive debugging session where you can set breakpoints, watch for
console.log
printouts and more.This is a WIP PR asking for early feedback.
TODO