Skip to content

Commit

Permalink
fix: fixed crash when disconnecting and break_vm_ is nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
sssooonnnggg committed Dec 5, 2024
1 parent 32d71de commit 4ce878c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debugger/src/internal/debug_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ void DebugBridge::processSingleStep(SingleStepProcessor processor) {
}

void DebugBridge::enableDebugStep(bool enable) {
if (break_vm_ == nullptr)
return;
lua_State* L = vm_registry_.getRoot(break_vm_);
auto callbacks = lua_callbacks(L);
if (!enable) {
Expand Down

0 comments on commit 4ce878c

Please sign in to comment.