Skip to content

Commit

Permalink
Jump to exception location on first exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rafd authored and jpmonettas committed Nov 28, 2024
1 parent b7985cb commit 940d98a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-dbg/flow_storm/debugger/events_processor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@
(defn- function-unwinded-event [{:keys [flow-id] :as unwind-data}]
(when (dbg-state/maybe-add-exception unwind-data)
(ui-utils/run-later
(flows-screen/update-exceptions-combo flow-id))))
(flows-screen/update-exceptions-combo flow-id)
;; the first time we encounter an exception, navigate to that location
(when (= 1 (count (dbg-state/flow-exceptions flow-id)))
(flows-screen/goto-location unwind-data)))))

(defn data-window-push-val-data-event [{:keys [dw-id val-data root?]}]
(data-windows/push-val dw-id val-data root?))
Expand Down

0 comments on commit 940d98a

Please sign in to comment.