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

Function breakpoint

indexer/src/translate.rs:62–82  ·  view source on GitHub ↗
(bp: SrcBreakPoint)

Source from the content-addressed store, hash-verified

60}
61
62pub fn breakpoint(bp: SrcBreakPoint) -> breakpoint::ActiveModel {
63 let SrcBreakPoint {
64 id,
65 file_id,
66 loc,
67 loc_end: _,
68 breakpoint_type: bp_type,
69 capture,
70 } = bp;
71
72 Breakpoint {
73 id,
74 file_id,
75 loc_line: loc.line,
76 loc_column: loc.column,
77 breakpoint_type: json_stringify(&bp_type),
78 capture: json_stringify(&capture),
79 hit_count: 0,
80 }
81 .into_active_model()
82}
83
84pub fn event(timestamp: Timestamp, event: SrcEvent) -> Event {
85 match event {

Callers 1

runFunction · 0.85

Calls 1

json_stringifyFunction · 0.85

Tested by

no test coverage detected