-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgma3_debug.lua
More file actions
27 lines (24 loc) · 1.03 KB
/
Copy pathgma3_debug.lua
File metadata and controls
27 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---------------------------------------------------------------------------
function activateDebuggee()
local json = require 'json'
debuggee = require 'vscode-debuggee'
local config = {
dumpCommunication = false; -- dump communication in debug console
dumpGMA3 = false;
}
if (HostType() == "Linux" or HostType() == "Console") then
local cmdresult = gma3_helpers:osExecuteWithResult("grep nfs /proc/mounts | cut -f1 -d ':'");
if (cmdresult ~= nil) then
config.controllerHost = cmdresult;
Echo("LUA debugger IP: " .. config.controllerHost);
end
end
local startResult, breakerType = debuggee.start(json, config)
Printf('json library: '..tostring(json))
Printf('debuggee library: '..tostring(debuggee))
Printf('debuggee breakertype: '..tostring(breakerType))
Printf('debuggee startresult: '..tostring(startResult))
return debuggee;
end
---------------------------------------------------------------------------
return activateDebuggee