You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot get VSCode to stop at my breakpoints no matter what tutorial I follow on Rust debugging. I am currently doing this on Mac OS 12.6. I have rust-analyzer installed, CodeLLDB installed, and set “allow breakpoints anywhere” to enabled.
The file I am trying to debug is intro2.rs. I tried compiling it a couple of times by running rustc .../rustlings/intro/intro2.rs, and an executable (I think) file intro2 appears in the intro folder. Then I tried running the debugger but it doesn't stop at my breakpoints, and it doesn't output the print statements in my code (I do get the messages if I run executable directly from the command line).
I tried building the whole rustlings project by running "cargo build" in the rustlings directory and I get a message saying:
"Finished dev [unoptimized + debuginfo] target(s) in 0.09s"
and a file called rustlings appears in the directory ".../rustlings/target/debug".
Still the debugger won't stop at my breakpoints.
I have my launch.json file set up as shown below at the end with the "program" property set to either one of: "program": /path/to/intro2
OR "program": .../rustlings/target/debug/rustlings
still nothing.
The debugger does stop at some assembly instructions if I add "main" to my breakpoints which leads me to conclude that the debugger is working but the debug info is not included when compiling "intro2.rs" but I don't why that's the case.
The debugger does stop at some assemly instructions if I add "main" to my breakpoints which leads me to conclude that the debugger is working but perhaps the debug info is not included when compiling "intro2.rs"
The text was updated successfully, but these errors were encountered:
I cannot get VSCode to stop at my breakpoints no matter what tutorial I follow on Rust debugging. I am currently doing this on Mac OS 12.6. I have rust-analyzer installed, CodeLLDB installed, and set “allow breakpoints anywhere” to enabled.
The file I am trying to debug is intro2.rs. I tried compiling it a couple of times by running
rustc .../rustlings/intro/intro2.rs
, and an executable (I think) fileintro2
appears in the intro folder. Then I tried running the debugger but it doesn't stop at my breakpoints, and it doesn't output the print statements in my code (I do get the messages if I run executable directly from the command line).I tried building the whole rustlings project by running "cargo build" in the rustlings directory and I get a message saying:
"Finished dev [unoptimized + debuginfo] target(s) in 0.09s"
and a file called
rustlings
appears in the directory ".../rustlings/target/debug".Still the debugger won't stop at my breakpoints.
I have my
launch.json
file set up as shown below at the end with the "program" property set to either one of:"program": /path/to/intro2
OR
"program": .../rustlings/target/debug/rustlings
still nothing.
The debugger does stop at some assembly instructions if I add "main" to my breakpoints which leads me to conclude that the debugger is working but the debug info is not included when compiling "intro2.rs" but I don't why that's the case.
Someone please help!
Someone please help!
The debugger does stop at some assemly instructions if I add "main" to my breakpoints which leads me to conclude that the debugger is working but perhaps the debug info is not included when compiling "intro2.rs"
The text was updated successfully, but these errors were encountered: