Log to Debug Console when no hardware breakpoints
@@ -521,7 +521,11 @@ impl<R: Read, W: Write> DebugAdapter<R, W> {
true,
Some(format!("Breakpoint at memory address: 0x{:08x}", location)),
),
- Err(err) => (false, Some(err.to_string())),
+ Err(err) => {
+ //In addition to sending the error to the 'Hover' message, also write it to the Debug Console Log
+ self.log_to_console(format!("ERROR: Could not set breakpoint at memory address: 0x{:08x}: {}", location, err));
+ (false, Some(err.to_string()))
+ },
};
created_breakpoints.push(Breakpoint {
