Skip to content

Commit dcfabc2

Browse files
Patrick Soquetmkellner
authored andcommitted
XS: receive the entire xsbug command before exiting the debug command loop
1 parent de8760b commit dcfabc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xs/sources/xsDebug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void fxDebugLoop(txMachine* the, txString path, txInteger line, txString message
257257
for (;;) {
258258
fxReceive(the);
259259
fxDebugParse(the);
260-
if (the->debugExit > 1)
260+
if ((the->debugState == XS_LF_STATE) && (the->debugExit > 1))
261261
break;
262262
}
263263
mxHostInspectors.value.list.first = C_NULL;

0 commit comments

Comments
 (0)