-
Notifications
You must be signed in to change notification settings - Fork 53
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
How do I debug with cargo-aoc #68
Comments
cargo aoc generates a new, nested Rust project under I opened a feature request (two years ago) to help with debugging by only generating the binary, not also run it (see #64, PR in #69), but neither have seen movement unfortunately. In the meantime, I use vscode-lldb features to trigger a build and extract the right binary path for the debugger, I don't know if cppvsdbg has something similar. For lldb, don't set |
Thanks for the reply, @mjpieters ! Because of your reply, I finally dug in and got Rust debugging working in VS Code. I tried using whatever debugger I had installed, and the executable you pointed me to. It didn't work. But then I loaded the VSCode Add-in "CodeLLDB", ran its command "LLDB: Generate Launch Configurations from Cargo.toml" and I can now debug my code and my tests! Love it. Thanks again. |
For anyone else that comes across this issue, this is the {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug current day",
"cargo": {
"args": [
"build",
"--manifest-path=target/aoc/aoc-autobuild/Cargo.toml",
"--bin=aoc-autobuild"
],
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
} |
I'm having no luck debugging (using VS Code and ) while running with cargo-aoc.
The debugger ignores my break-traps in dayN.rs
I'm a bit of a newbie. This should work, right?
Is there something in this .vscode launch.json file that's wrong?
(I can debug Hello World with a similar setup.)
The text was updated successfully, but these errors were encountered: