Skip to content

Commit

Permalink
调试器支持中文标识符断点
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed May 22, 2024
1 parent 922873f commit a729eaa
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 24 deletions.
Binary file modified 3rd/debugger/bin/launcher.x64.dll
Binary file not shown.
Binary file modified 3rd/debugger/bin/launcher.x86.dll
Binary file not shown.
Binary file modified 3rd/debugger/bin/lua-debug.exe
Binary file not shown.
Binary file modified 3rd/debugger/runtime/win32-x64/lua54/lua.exe
Binary file not shown.
Binary file modified 3rd/debugger/runtime/win32-x64/lua54/lua54.dll
Binary file not shown.
Binary file modified 3rd/debugger/runtime/win32-x64/lua54/luadebug.dll
Binary file not shown.
22 changes: 11 additions & 11 deletions 3rd/debugger/script/backend/master/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -644,16 +644,16 @@ function request.customRequestShowIntegerAsHex(req)
}
end

--function print(...)
-- local n = select('#', ...)
-- local t = {}
-- for i = 1, n do
-- t[i] = tostring(select(i, ...))
-- end
-- event.output {
-- category = 'stdout',
-- output = table.concat(t, '\t')..'\n',
-- }
--end
function print(...)
local n = select('#', ...)
local t = {}
for i = 1, n do
t[i] = tostring(select(i, ...))
end
event.output {
category = 'stdout',
output = table.concat(t, '\t')..'\n',
}
end

return request
22 changes: 11 additions & 11 deletions 3rd/debugger/script/backend/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ ev.on('memory', function(memoryReference, offset, count)
}
end)

--function print(...)
-- local n = select('#', ...)
-- local t = {}
-- for i = 1, n do
-- t[i] = tostring(select(i, ...))
-- end
-- ev.emit('output', {
-- category = 'stderr',
-- output = table.concat(t, '\t')..'\n',
-- })
--end
function print(...)
local n = select('#', ...)
local t = {}
for i = 1, n do
t[i] = tostring(select(i, ...))
end
ev.emit('output', {
category = 'stderr',
output = table.concat(t, '\t')..'\n',
})
end

local function cleanFrame()
variables.clean()
Expand Down
2 changes: 1 addition & 1 deletion 3rd/debugger/script/backend/worker/variables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ local function init_standard()
end

ev.on('initializing', function(config)
showIntegerAsHex = config.configuration.variables.showIntegerAsHex
showIntegerAsHex = false --config.configuration.variables.showIntegerAsHex
LUAVERSION = luaver.LUAVERSION
isjit = luaver.isjit
arrayBase = isjit and 0 or 1
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"Other"
],
"activationEvents": [
"workspaceContains:y3/开发计划.md"
"workspaceContains:y3/开发计划.md",
"onDebugResolve:y3lua"
],
"main": "./out/extension.js",
"capabilities": {
Expand Down

0 comments on commit a729eaa

Please sign in to comment.