From 9b59a9764e5a3e84bbb1ef8e2d8022ed52c949f9 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 7 Oct 2025 20:23:22 +0800 Subject: [PATCH] Update ceval.c --- src/interpreter/ceval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interpreter/ceval.c b/src/interpreter/ceval.c index 9e024796..ad5368c1 100644 --- a/src/interpreter/ceval.c +++ b/src/interpreter/ceval.c @@ -116,8 +116,7 @@ __NEXT_STEP: #if PK_ENABLE_WATCHDOG if(self->watchdog_info.max_reset_time > 0) { - clock_t now = clock(); - if(now > self->watchdog_info.max_reset_time) { + if(!py_debugger_isattached() && clock() > self->watchdog_info.max_reset_time) { self->watchdog_info.max_reset_time = 0; TimeoutError("watchdog timeout"); goto __ERROR;