Open ThomasCartier opened 1 month ago
Not aware of any changes, but note that rust-analyzer does not handle debugging Rust code; it only integrates with existing debugging tools. It might be that your code is not being built with debug info.
You are right but I gelt like to report a change that happened right after the RA update and that disappeared with the downgrade. Maybe someone has an idea of what's going on..
There was a change to the debug task here https://github.com/rust-lang/rust-analyzer/commit/cb523fc88a35731279925a418dd6828df6acde92 which broke some stuff, and another followup in https://github.com/rust-lang/rust-analyzer/blob/master/editors/code/src/debug.ts which fixed things btu this might still have changed some behavior
Just a side note, I still have the same issue with RA v2037 and codeLLDB, in vscode.
Anyone else experience this ? I would like to not be stuck in v2020.
I think I found the issue on our side
@Veykril Just installed v2045 and the problem still occurs.
Thanks for checking again, I'll take another look. What debugging extension are you using?
@Veykril : many thanks to you. I use codeLLDB. Every extensions are up to date on my system.
Hmm, breakpoints do work for me on the latest release 😕
I will try with a naked vscode and see. I will report in two/three hours. Thanks a lot
Ok it works on a naked installation. I will report the setting(s) that mess everything, in case anyone else has the same issue. Then I will close this issue.
@Veykril found the culprit!
it's "rust-analyzer.runnables.extraArgs"
coupled with "release".
in my setting.json I had:
"rust-analyzer.runnables.extraArgs": [
"--release"
]
that launched the optimized version of my code when clicking the "release" inlay button above my test. Now, it seems that it is working differently and replaces:
"rust-analyzer.runnables.extraTestBinaryArgs": [
"--show-output",
"--nocapture"
],
which is a differing behavior from v2020. It is as if extraTestBinaryArgs
was overwritten by the extraArgs
.
It's in the inlay button management that the issue lies.
When removing extraArgs
, a click on the debug button works fine, as usual.
Hi, RA 0.3.2020 respects the breakpoints but not the 2029 version when running Debug with from inlay in test module.
A breakpoint to any statement won't stop.
VScode
Stepping down to 2020 solves the issue. Any new option to be aware of ?