Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger with "Uncaught exceptions" checked, does not pause #2297

Open
kennyjwilli opened this issue Jan 16, 2020 · 0 comments
Open

Debugger with "Uncaught exceptions" checked, does not pause #2297

kennyjwilli opened this issue Jan 16, 2020 · 0 comments

Comments

@kennyjwilli
Copy link

Given a function like this:

(defn foo
  [x]
  (+ x "a"))

Enable Java Exception Breakpoints > Any exception and ensure "Uncaught exception" is checked and "Caught exception" is not checked:
Screenshot from 2020-01-16 13-10-59

Execute (foo 1) in the REPL. A ClassCastException will be thrown but the debugger will not pause as expected.

If I check both caught and uncaught exception boxes,
Screenshot from 2020-01-16 13-13-00

the debugger will correctly pause at the line where the + is located. It will, however, also pause at line 7187& 7194 in clojure.lang.Compiler on Var.popThreadBindings(); and 437 in clojure.main on (let [value (binding [*read-eval* read-eval] (eval input))].

The 3 additional pauses are not relevant to the function I am debugging so it'd be nice to not have those occur, presumably by using the pause on "Uncaught exception" only toggle.

Cursive version: 1.9.1-eap1-2019.3
Clojure version: 1.10.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant