Explorar o código

memoryBreak fix

Brian Fiete hai 8 meses
pai
achega
b9550e4219
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      IDE/src/IDEApp.bf

+ 4 - 2
IDE/src/IDEApp.bf

@@ -13971,9 +13971,11 @@ namespace IDE
 							if (checkBreakpoint.mMemoryAddress == memoryAddress)
 								breakpoint = checkBreakpoint;
 						}
-						String infoString = scope String()..AppendF("Memory breakpoint hit: '0x{0:X08}'", (int64)memoryAddress);
+						String infoString = scope .();
 						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);
 						if (!mRunningTestScript)
 						{