1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-25 02:58:02 +02:00

Handle Break When Value Changes with watches prefixed with @Beef: or @C:

This commit is contained in:
Brian Fiete 2024-03-22 15:11:40 -04:00
parent d76cc1ebc9
commit d7bf451c9f
2 changed files with 35 additions and 10 deletions

View file

@ -3324,6 +3324,8 @@ namespace IDE.ui
CompactChildExpression(listViewItem, evalStr);
int valStart = 0;
if ((evalStr.StartsWith("@Beef:")) || (evalStr.StartsWith("@C:")))
valStart = evalStr.IndexOf(':') + 1;
if (evalStr.StartsWith('{'))
{
int endPos = evalStr.IndexOf('}');
@ -3335,6 +3337,7 @@ namespace IDE.ui
evalStr.Remove(valStart, 1);
else
evalStr.Insert(valStart, "&");
gApp.mBreakpointPanel.CreateMemoryBreakpoint(evalStr);
gApp.MarkDirty();
});