Closed shreyanshiitb closed 4 years ago
It now gives a different error. For my purpose, I have commented
if type(value) == "table" then
dbgVar.length = #value
end
in lldebugger.lua file
/root/torch/install/bin/luajit: ....local-lua-debugger-vscode-0.1.8/debugger/lldebugger.lua:431: torch.CmdLine has no length operator
stack traceback:
[C]: in function '__len'
....local-lua-debugger-vscode-0.1.8/debugger/lldebugger.lua:431: in function 'buildVariable'
....local-lua-debugger-vscode-0.1.8/debugger/lldebugger.lua:493: in function 'vars'
....local-lua-debugger-vscode-0.1.8/debugger/lldebugger.lua:903: in function 'debugBreak'
....local-lua-debugger-vscode-0.1.8/debugger/lldebugger.lua:1088: in function <....local-lua-debugger-vscode-0.1.8/debugger/lldebugger.lua:1063>
preprocess.lua:10: in main chunk
[C]: at 0x00405d50
That's an interesting error. It looks like torch has a custom type that says it is a table, but does not support the length operator.
Commenting out that line will almost certainly cause issues with the debugger. Will you open a new issue for this? Also, please include the line in preprocess.lua (line 10) that triggers the issue. Thanks!
Hi, It seems LauJit debugger is not working for me. It is not even getting started. debug console(VS code) shows this on pressing F5(starting debugger) :
whereas on bash this works perfectly
Steps to reproduce :
launch.json
preprocess.lua