mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
fix an fatal error (#392)
This commit is contained in:
parent
b6c030ac15
commit
b6a6aa85a6
@ -507,8 +507,9 @@ void c11_dap_tracefunc(py_Frame* frame, enum py_TraceEvent event) {
|
|||||||
}
|
}
|
||||||
c11_dap_handle_message();
|
c11_dap_handle_message();
|
||||||
C11_STOP_REASON reason = c11_debugger_should_pause();
|
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);
|
py_sys_settrace(c11_dap_tracefunc, false);
|
||||||
|
server.isattach = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
c11_dap_send_stop_event(reason);
|
c11_dap_send_stop_event(reason);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user