You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to debug lua in dcs. I have been successfully debuggin it using Lua Debugger by devCAT but I wanted to try another one for comparison. I try to configure it for using pipe, but it still seems to fail trying to find stdout, which seems to not be available in dcs. Is my configuration for using pipe incorrect maybe?
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
env.info("lldebugger available")
require("lldebugger").start()
else
env.info("lldebugger NOT available!")
end
it fails with the following log:
2022-04-02 10:25:14.178 INFO SCRIPTING: lldebugger available
2022-04-02 10:25:14.181 ERROR SCRIPTING: Mission script error: [string "c:\Users\deadbeef\.vscode\extensions\tomblind.local-lua-debugger-vscode-0.3.2/debugger/lldebugger.lua"]:1754: attempt to index field 'stdout' (a nil value)
stack traceback:
[C]: ?
[string "c:\Users\deadbeef\.vscode\extensions\tomblind.local-lua-debugger-vscode-0.3.2/debugger/lldebugger.lua"]:1754: in function 'module'
[string "c:\Users\deadbeef\.vscode\extensions\tomblind.local-lua-debugger-vscode-0.3.2/debugger/lldebugger.lua"]:11: in function <[string "c:\Users\deadbeef\.vscode\extensions\tomblind.local-lua-debugger-vscode-0.3.2/debugger/lldebugger.lua"]:5>
(tail call): ?
[C]: in function 'require'
[string "C:\Users\deadbeef\Saved Games\DCS.TKO\Missions\TKO\scripts\main.lua"]:5: in main chunk
[C]: in function 'require'
[string "-- set path..."]:14: in main chunk
The text was updated successfully, but these errors were encountered:
Looking at the error you posted, though, I think you will still run into problems. I don't currently account for the possibility that io.stdout doesn't exist at all. I'll add a check for this in the next version.
I am trying to debug lua in dcs. I have been successfully debuggin it using Lua Debugger by devCAT but I wanted to try another one for comparison. I try to configure it for using pipe, but it still seems to fail trying to find stdout, which seems to not be available in dcs. Is my configuration for using pipe incorrect maybe?
I configure it via launch.json:
I hook it into DCS with this:
it fails with the following log:
The text was updated successfully, but these errors were encountered: