Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/mobdebug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,11 @@ local function debugger_loop(sev, svars, sfile, sline)
end
end
if server.settimeout then server:settimeout() end -- back to blocking
command = string.sub(line, string.find(line, "^[A-Z]+"))
if command == "SETB" then
local status
status, command = pcall(string.sub, line, string.find(line, "^[A-Z]+"))
if not status then
print('error getting the command')
elseif command == "SETB" then
local _, _, _, file, line = string.find(line, "^([A-Z]+)%s+(.-)%s+(%d+)%s*$")
if file and line then
set_breakpoint(file, tonumber(line))
Expand Down