fix an fatal error (#392)

This commit is contained in:
lightovernight 2025-08-27 17:17:34 +08:00 committed by GitHub
parent b6c030ac15
commit b6a6aa85a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -507,8 +507,9 @@ void c11_dap_tracefunc(py_Frame* frame, enum py_TraceEvent event) {
}
c11_dap_handle_message();
C11_STOP_REASON reason = c11_debugger_should_pause();
if(reason != C11_DEBUGGER_NOSTOP) {
if(reason == C11_DEBUGGER_NOSTOP) {
py_sys_settrace(c11_dap_tracefunc, false);
server.isattach = true;
return;
}
c11_dap_send_stop_event(reason);