Crates.io | dbgtools-win |
lib.rs | dbgtools-win |
version | 0.2.1 |
source | src |
created_at | 2021-03-07 15:48:20.057893 |
updated_at | 2021-05-03 11:28:17.703116 |
description | Expensive and intrusive debugging tools (for Windows) |
homepage | |
repository | https://github.com/openqrnch/dbgtools-win |
max_upload_size | |
id | 365273 |
size | 28,692 |
A set of platform-specific functions that can be useful when debugging userland Windows applications and libraries.
This crate is meant to be used in development environments only. Its functions are tightly tied to other development tools, and it may add significant overhead to your code.
The recommended way to use dbgtools
is to add it as an optional feature so
that it is only compiled into your project when it's needed for debugging:
In Cargo.toml
:
[dependencies]
dbgtools-win = { version = "0.2", optional = true }
In code:
// Wait for a debugger to connect and break as soon as it has
#[cfg(feature="dbgtools-win")]
dbgtools_win::debugger::wait_for_then_break();
Build using:
cargo build --features dbgtools-win