Comments (2)
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
from local-lua-debugger-vscode.
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!
from local-lua-debugger-vscode.
Related Issues (20)
- Extreme slowdown withing Love2d / breakpoints ignored HOT 9
- Configuration Question, trying to debug lua in DCS HOT 2
- Support for multiple threads? HOT 2
- Breakpoints don't work when program.file is set to relative parent path HOT 4
- rawlen usage makes extension incompatible with LuaJIT-based implementations
- strict mode incompatibility
- Question: is there a way to set environment variables within debugger settings? HOT 2
- love2d cant step in with debugger to love2d lua libary HOT 1
- lldebugger changes the slash in file paths in debug.traceback() when active
- Allow inspecting upvalues of a closure
- Add `console` for Integrated Terminal option to launch configuration HOT 1
- Wrong assert stack level
- Request: Example usage of customPropertyGetterForUserData
- lua5.4 supported? HOT 1
- Is this extension still developed? HOT 14
- Request to Add "console": "integratedTerminal" Functionality HOT 4
- Breakpoints not working on custom engine using physfs HOT 1
- Can't debug with Sapiens HOT 1
- Source mapping doesn't work with multiple sources in one map HOT 1
- Lua is not recognized as an internal or external command operable program or batch file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from local-lua-debugger-vscode.