Closed trusktr closed 5 years ago
ndb
is designed for Node.js. While Karma's core is based in Node.js, it runs all the tests inside of its respective browsers so ndb
doesn't make much sense. Instead, debugging can be performed via a browser's built-in tools
In the case of karma-electron
, these are the Chrome Dev Tools built into Electron. I've covered this in detail here:
Ah, thanks! It'd be neat if ndb
would be able to pick up any Chrome process.
I'm curious to know if there's a way to run karma with karma-electron with
ndb
so that I can step through code.I've tried something like
which opens the ndb devtools window, but nothing runs in there, there's no source files visible in there, nothing is paused, and karma simply runs everything. It's at least not pausing on karma code, though I imagine hooking into Electron might require some other steps.
Any idea how to inspect code running in karma-electron?
(I asked on SO, but no luck there after a month).