Browse Source

memoryBreak fix

Brian Fiete 8 months ago
parent
commit
b9550e4219
1 changed files with 4 additions and 2 deletions
  1. 4 2
      IDE/src/IDEApp.bf

+ 4 - 2
IDE/src/IDEApp.bf

@@ -13971,9 +13971,11 @@ namespace IDE
 							if (checkBreakpoint.mMemoryAddress == memoryAddress)
 							if (checkBreakpoint.mMemoryAddress == memoryAddress)
 								breakpoint = checkBreakpoint;
 								breakpoint = checkBreakpoint;
 						}
 						}
-						String infoString = scope String()..AppendF("Memory breakpoint hit: '0x{0:X08}'", (int64)memoryAddress);
+						String infoString = scope .();
 						if (breakpoint != null)
 						if (breakpoint != null)
-							infoString = scope String()..AppendF("Memory breakpoint hit: '0x{0:X08}' ({1})", (int64)memoryAddress, breakpoint.mMemoryWatchExpression);
+							infoString.AppendF("Memory breakpoint hit: '0x{0:X08}' ({1})", (int64)memoryAddress, breakpoint.mMemoryWatchExpression);
+						else
+							infoString.AppendF("Memory breakpoint hit: '0x{0:X08}'", (int64)memoryAddress);
 						OutputLine(infoString);
 						OutputLine(infoString);
 						if (!mRunningTestScript)
 						if (!mRunningTestScript)
 						{
 						{