summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/launch.json7
-rw-r--r--server-beta/debugger.lua2
2 files changed, 8 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index fa39fb73..5b3577d4 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -64,5 +64,12 @@
"sourceCoding": "utf8",
"luaRuntime": "5.4 64bit"
},
+ {
+ "name": "附加-beta",
+ "type": "lua",
+ "request": "attach",
+ "stopOnEntry": true,
+ "address": "127.0.0.1:11412",
+ },
]
}
diff --git a/server-beta/debugger.lua b/server-beta/debugger.lua
index e8144de0..113fa687 100644
--- a/server-beta/debugger.lua
+++ b/server-beta/debugger.lua
@@ -41,7 +41,7 @@ local path = "/script/?.lua"
local function tryDebugger()
local entry = assert(package.searchpath('debugger', debugPath:string() .. path))
local root = debugPath:string()
- local port = '11411'
+ local port = '11412'
local addr = "127.0.0.1:" .. port
local dbg = loadfile(entry)('windows', root)
dbg:start(addr)