Comments (2)
I've played around with this some more. Like I said in the OP, I don't always require lldebugger
because it slows down the game. However, it only slows down when you start the debugger. So what I can do is DEBUGGER = require "lldebugger"
at the start, and then DEBUGGER.start()
in love.errorhandler
. Requiring lldebugger
inside love.errorhandler
doesn't work for whatever reason. It needs to be required beforehand.
This is what my love.errorhandler
looks like:
function love.errorhandler(msg)
msg = tostring(msg)
error_printer(msg, 2)
DEBUGGER.start()
error(msg, 2)
end
If there is another solution to this, I would like to know
So for me, this is a satisfying alternate solution. If you want you may close this issue @tomblind.
from local-lua-debugger-vscode.
This would be a good optimization to get in, so I'll leave this issue open for that.
from local-lua-debugger-vscode.
Related Issues (20)
- Problems with captialzation in file names on Windows HOT 5
- Global variables do not seem to carry over to loaded modules HOT 2
- 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
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.