MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / new_breakpoint

Function new_breakpoint

debugger/src/debugger.rs:1149–1160  ·  view source on GitHub ↗
(id: u32, file_id: u32, func: &FunctionDef)

Source from the content-addressed store, hash-verified

1147
1148#[doc(hidden)]
1149pub fn new_breakpoint(id: u32, file_id: u32, func: &FunctionDef) -> Breakpoint {
1150 Breakpoint {
1151 id,
1152 file_id,
1153 loc: func.loc.start,
1154 loc_end: Some(func.loc.end),
1155 breakpoint_type: BreakpointType::FunctionCall {
1156 fn_name: func.ty.fn_name().into(),
1157 },
1158 capture: VariableCapture::Arguments,
1159 }
1160}
1161
1162#[doc(hidden)]
1163pub fn new_async_breakpoint(id: u32, file_id: u32, func: &FunctionDef) -> Breakpoint {

Callers 3

mainFunction · 0.85

Calls 1

fn_nameMethod · 0.80

Tested by 2