diff --git a/src/gdb/GDBDebugSessionBase.ts b/src/gdb/GDBDebugSessionBase.ts index f413b24d..346533b1 100644 --- a/src/gdb/GDBDebugSessionBase.ts +++ b/src/gdb/GDBDebugSessionBase.ts @@ -926,7 +926,7 @@ export abstract class GDBDebugSessionBase extends LoggingDebugSession { // Filter out all watchpoints const existingWatchpointsList = fullBreakpointsList.BreakpointTable.body.filter((bp) => - bp['type'].includes('watchpoint') + bp['type']?.includes('watchpoint') ); return existingWatchpointsList; }