Closed ctaggart closed 8 years ago
shows it working, but setup issues with .gdbinit
.
https://github.com/saviorisdead/RustyCode/issues/143
https://packages.debian.org/jessie/gdb Debian Jessie packages 7.7.1 sudo apt-get install -y gdb
Debug Console
fwarning: Missing auto-load scripts referenced in section .debug_gdb_scripts
of file /home/vscode/demo/target/debug/demo
Use `info auto-load python-scripts [REGEXP]' to list them.
Running executable
warning: Error disabling address space randomization: Operation not permitted
Hello, world!
Literally run it in the VSCode Debug Console:
info auto-load python-scripts
not available
info auto-load python-scripts
Loaded Script
No gdb_load_rust_pretty_printers.py
About the pretty printers: http://michaelwoerister.github.io/2015/03/27/rust-xxdb.html
I'm testing this with #18 and https://github.com/nickel-org/nickel.rs/issues/346. I'd like to be able to break for http requests. The key to removing the pretty printer warnings was to use rust-gdb
wrapper script which can be set with "gdbpath": "rust-gdb",
.
Here is the full launch.json
where gdbpath
has been added and target
modified:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "gdb",
"gdbpath": "rust-gdb",
"request": "launch",
"target": "./target/debug/demo",
"cwd": "${workspaceRoot}"
}
]
}
It is able to hit breakpoints.
https://github.com/saviorisdead/RustyCode/issues/37#issuecomment-218968530 https://marketplace.visualstudio.com/items?itemName=webfreak.debug current version is 0.8.1