Fix remedy crash on f9 and scratch content reset to normal
This commit is contained in:
@@ -10,7 +10,9 @@ bool SearchCaseSensitive = false;
|
|||||||
bool SearchWordBoundary = false;
|
bool SearchWordBoundary = false;
|
||||||
bool BreakOnError = false;
|
bool BreakOnError = false;
|
||||||
Int ErrorCount;
|
Int ErrorCount;
|
||||||
// String16 InitialScratchContent;
|
#if 1
|
||||||
|
String16 InitialScratchContent;
|
||||||
|
#else
|
||||||
String16 InitialScratchContent = uR"==(0
|
String16 InitialScratchContent = uR"==(0
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
@@ -18,6 +20,7 @@ String16 InitialScratchContent = uR"==(0
|
|||||||
4
|
4
|
||||||
5
|
5
|
||||||
6)==";
|
6)==";
|
||||||
|
#endif
|
||||||
|
|
||||||
Allocator SysAllocator = {SystemAllocatorProc};
|
Allocator SysAllocator = {SystemAllocatorProc};
|
||||||
String ConfigDir;
|
String ConfigDir;
|
||||||
|
|||||||
@@ -2263,7 +2263,8 @@ void CO_StopDebugging(mco_coro *co) {
|
|||||||
} RegisterCoroutineCommand(CO_StopDebugging, "shift-f5", "Stop debugging");
|
} RegisterCoroutineCommand(CO_StopDebugging, "shift-f5", "Stop debugging");
|
||||||
|
|
||||||
void CO_AddBreakpoint(mco_coro *co) {
|
void CO_AddBreakpoint(mco_coro *co) {
|
||||||
if (!RDBG_InitConnection(co)) {
|
bool conn = RDBG_InitConnection(co);
|
||||||
|
if (!conn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2291,7 +2292,7 @@ void CO_SelfAttachDebugger(mco_coro *co) {
|
|||||||
MemoryZero(RDBG_Ctx.last_error, sizeof(RDBG_Ctx.last_error));
|
MemoryZero(RDBG_Ctx.last_error, sizeof(RDBG_Ctx.last_error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} RegisterCoroutineCommand(CO_SelfAttachDebugger, "f9", "Spawn and self attach the debugger to the text editor");
|
} RegisterCoroutineCommand(CO_SelfAttachDebugger, "", "Spawn and self attach the debugger to the text editor");
|
||||||
|
|
||||||
void QuitDebugger() {
|
void QuitDebugger() {
|
||||||
if (RDBG_Ctx.command_pipe_handle == NULL) {
|
if (RDBG_Ctx.command_pipe_handle == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user