Debugger: Add conditional and hit conditional breakpoint functionality (#27760)
This PR adds conditional and hit condition breakpoint functionality cc @osiewicz Co-authored-by: Remco Smits: <djsmits12@gmail.com> Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: Remco Smits <djsmits12@gmail.com>
This commit is contained in:
parent
dc64ec9cc8
commit
d517a212dc
6 changed files with 368 additions and 50 deletions
|
@ -17387,6 +17387,8 @@ fn assert_breakpoint(
|
|||
Breakpoint {
|
||||
message: breakpoint.message.clone(),
|
||||
state: breakpoint.state,
|
||||
condition: breakpoint.condition.clone(),
|
||||
hit_condition: breakpoint.hit_condition.clone(),
|
||||
},
|
||||
)
|
||||
})
|
||||
|
@ -17415,13 +17417,7 @@ fn add_log_breakpoint_at_cursor(
|
|||
.buffer_snapshot
|
||||
.anchor_before(Point::new(cursor_position.row, 0));
|
||||
|
||||
(
|
||||
breakpoint_position,
|
||||
Breakpoint {
|
||||
message: Some(Arc::from(log_message)),
|
||||
state: BreakpointState::Enabled,
|
||||
},
|
||||
)
|
||||
(breakpoint_position, Breakpoint::new_log(&log_message))
|
||||
});
|
||||
|
||||
editor.edit_breakpoint_at_anchor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue