Closed tslocke closed 6 years ago
This should work. Can you confirm that the "pause on exceptions" functionality works for your project with standard (internal) devtools as expected? if yes, I will then try to reproduce it in the sample project.
Working fine with internal devtools + Figwheel yes.
If I open the internal devtools, and enable both "Pause on exceptions" and "Pause on caught exceptions", and run something that raises an error via the Figwheel REPL, execution halts at the error as expected.
If I open the Dirac devtools window (from same browser window - loaded from the Figwheel server), and run the same code in the devtools console, it doesn't halt.
Thanks for your help.
Hmm, commands executed in Dirac console have try-catch wrapper around them for me to present errors in the the (remote) REPL: https://github.com/binaryage/dirac/blob/master/src/runtime/dirac/runtime/repl.cljs#L263.
This might interfere with it. But similar try-catch is implemented in figwheel as well. Not sure how this works exactly. Will investigate.
Thanks for getting on this so quickly.
Sorry for the noob question - what would be the best way of running Dirac from the latest master? I've tried via the lein-git-deps plugin, but I've had to add a bunch of paths to my :source-paths (e.g. ".lein-git-deps/dirac/src/nrepl"
) for it to build, which seems kinda messy, and I'm not sure it built correctly because now Dirac is having problems switching namespace.
Better wait for proper release. I will get to it eventually.
A workaround for your REPL interaction in current version is to do the command as async code:
(js/setTimeout #(throw "X") 0)
Hi,
Thanks for an amazing project.
Should I expect "Pause on exceptions" (Sources panel) to just work, once Dirac is up and running, or would that need some extra config?
Any suggestions for debugging why it's not working? Hopefully just a config issue.
These are the versions I have in
project.clj
And
:repl-options