| Crates.io | dbg-rs |
| lib.rs | dbg-rs |
| version | 0.1.2 |
| created_at | 2025-01-28 20:03:47.377794+00 |
| updated_at | 2025-06-25 02:05:34.983432+00 |
| description | Safe Rust bindings for the COM interfaces of the Windows debugging engine |
| homepage | https://github.com/joaoviictorti/dbg |
| repository | https://github.com/joaoviictorti/dbg |
| max_upload_size | |
| id | 1533954 |
| size | 33,065 |
Safe Rust bindings for the COM interfaces of the Windows debugging engine.
Add dbg to your project by updating your Cargo.toml:
cargo add dbg-rs
The dbg-rs library provides utilities to interact with the Windows debugging engine, such as executing commands, logging messages, and inspecting debug symbols. Below are some common use cases:
Use the dprintln! macro to send formatted messages to the debugger output:
use dbg_rs::dprintln;
// Example usage
dprintln!(dbg, "Hello, {}!", "Debugger");
dprintln!(dbg, "Number: {}", 42);
Running commands in the debugger:
use dbg_rs::Dbg;
dbg.exec(".echo Hello, Debugger!")?;
Access specific regions of the debugged process's memory:
use dbg_rs::Dbg;
let mut buffer = vec![0u8; 128];
dbg.read_vaddr(0x7FFEBEEF0000, &mut buffer)?;
println!("Read memory: {:?}", &buffer[..16]); // Print first 16 bytes
For more examples, check the examples folder in the repository.
This project is licensed under the MIT License. See the LICENSE file for details.