Skip to content

Commit b32f4d8

Browse files
authored
Merge pull request #2958 from afucher/af/upd-debug-load-file
doc: Add version of cider-nrepl and cider that fix behavior of unset breakpoints when loading file
2 parents 7974d59 + 98a5d28 commit b32f4d8

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/site/debugger.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ Here the breakpoint is exactly in front of a form that contains as its last expr
138138

139139
### Loading the File and "Eval On Save"
140140

141-
When you load a file, any breakpoints that were previously set in functions will be unset. If you have the "Eval On Save" setting enabled, your file is also loaded with each save, therefore saving the file will remove breakpoints previously set.
141+
When you load a file, any breakpoints that were previously set in functions will be unset if you are using `nREPL` versions older than 1.5.0 or `cider-nrepl` versions older than 0.58.0. Starting with `nREPL` 1.5.0 together with `cider-nrepl` 0.58.0, breakpoints persist when the file is reloaded. If you have the "Eval On Save" setting enabled, saving the file will reload it; this only removes breakpoints when you're on older versions of these dependencies.
142+
143+
!!! Note
144+
If you want to know how to configure the versions of the dependencies that Calva Jack-in injects, see [Customizing Calva - Jack-in Dependency Versions](customizing-jack-in-and-connect.md#jack-in-dependency-versions).
142145

143146
## Clashes with Emacs/CIDER debugger
144147

@@ -167,7 +170,7 @@ It's likely that your breakpoint is in a place that cider-nrepl does not see as
167170
(+ 1 #break 1)) ;; This breakpoint will not be hit
168171
```
169172

170-
Another possible issue is that you're loading the file again after setting breakpoints, which unsets them. See [Loading the File and "Eval On Save"](#loading-the-file-and-eval-on-save) under Caveats.
173+
Another possible issue is that you're loading the file again after setting breakpoints, which unsets them when you're using `nREPL` versions older than 1.5.0 or `cider-nrepl` versions older than 0.58.0. See [Loading the File and "Eval On Save"](#loading-the-file-and-eval-on-save) under Caveats for more details and how newer versions preserve breakpoints.
171174

172175
### My breakpoint in a test isn't being hit
173176

docs/site/jack-in-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ search:
1212
Like with [CIDER Jack-in](https://metaredux.com/posts/2019/11/02/hard-cider-understanding-the-jack-in-process.html), Calva's let-me-help-you-start-your-project-and-connect feature might seem a bit mysterious. It really is helpful, but also really isn't mysterious. Here are a few things about it that is good to know about.
1313

1414
!!! Note
15-
If you came here to find out how to configure the versions of the dependencies that Calva Jack-in injects, see [Customizing Calva - Jack-in Dependency Versions](customizing.md#jack-in-dependency-versions).
15+
If you came here to find out how to configure the versions of the dependencies that Calva Jack-in injects, see [Customizing Calva - Jack-in Dependency Versions](customizing-jack-in-and-connect.md#jack-in-dependency-versions).
1616

1717
## What it Solves
1818

0 commit comments

Comments
 (0)