How do you create a breakpoint?
- Dominant language
- Rust
- Stars
- 62
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
In `lldb-sys` this can be done with:
```rust
use lldb_sys::*;
const BINARY: &str = env!("CARGO_BIN_EXE_testing");
SBDebuggerInitialize();
let debugger = SBDebuggerCreate2(true);
let binary_path = CString::new(BINARY)?;
let target = SBDebuggerCreateTarget2(debugger, binary_path.as_ptr());
let file = CString::new("src/main.rs")?;
let breakpoint = SBTargetBreakpointCreateByLocation(target, file.as_ptr(), 1);
```
so I would assume `SBTargetBreakpointCreateByLocation` would be a function on [`lldb::SBTarget`](https://docs.rs/lldb/latest/lldb/struct.SBTarget.html) but I can't see any.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the lldb-sys function SBTargetBreakpointCreateByLocation with the lldb::SBTarget API linked in the issue. Check how the higher-level bindings expose related target operations; done means the corresponding breakpoint-by-location operation is available through SBTarget.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100