Sprint 30: end-of-sprint architecture refactor pass

This commit is contained in:
Bill
2026-02-17 10:42:36 -07:00
parent 67fc439ccd
commit 9a3b2d0c04
5 changed files with 58 additions and 3 deletions

View File

@@ -6,6 +6,8 @@
#include <string>
#include <vector>
#include "DebugValidationUtil.h"
struct Breakpoint {
std::string id;
std::string filePath;
@@ -96,7 +98,7 @@ private:
std::map<std::string, size_t> index_;
bool addBreakpoint(const Breakpoint& bp) {
if (bp.id.empty() || bp.filePath.empty() || bp.line <= 0) return false;
if (!hasRequiredDebugIds(bp.id, bp.filePath) || !isPositiveLine(bp.line)) return false;
if (index_.count(bp.id) != 0) return false;
breakpoints_.push_back(bp);
index_[bp.id] = breakpoints_.size() - 1;