Skip to content

Commit a89fa73

Browse files
committed
SDL: add debug step pause
1 parent ec6471e commit a89fa73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/sdl/runtime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#define WAIT_INTERVAL 5
3131
#define COND_WAIT_TIME 250
3232
#define PAUSE_DEBUG_LAUNCH 250
33+
#define PAUSE_DEBUG_STEP 50
3334
#define MAIN_BAS "__main_bas__"
3435
#define AMPLITUDE 22000
3536
#define FREQUENCY 44100
@@ -199,6 +200,7 @@ void Runtime::debugStep(TextEditInput *edit, TextEditHelpWidget *help, bool cont
199200
char buf[OS_PATHNAME_SIZE + 1];
200201
int size;
201202
net_print(g_debugee, cont ? "c\n" : "n\n");
203+
pause(PAUSE_DEBUG_STEP);
202204
net_print(g_debugee, "l\n");
203205
size = net_input(g_debugee, buf, sizeof(buf), "\n");
204206
if (size > 0) {

0 commit comments

Comments
 (0)