This is what extension do. At least it’s expected .
Could you take a look at logs please? Select the Output tab and Defold Kit to check what’s the difference between your manual scenario and the automated one by the extension?
I believe I have identified the issue. While debugging in VSCodium still results in the same error, the code executes successfully when run directly from another terminal within the Defold project or from the build folder. However, running the code from the VSCodium terminal produces the same error.
The problem appears to be related to the Flatpak version of VSCodium (the same issue occurs with the Flatpak version of Visual Studio Code). The sandboxing system used by Flatpak seems to prevent access to certain environment variables, libraries, or paths outside of the sandbox. This restriction is likely causing the libGLU.so.1 library to be unavailable, resulting in the error.
Hello, I have just started experimenting with VS Code and Defold Kit extension.
However, I have a problem. When I run debug session with a breakpoint, it stops on it properly but later on, if I untoggle it (the breakpoint), resume execution, and toggle back, the program doesn’t stop on it anymore. Is this normal behavior? I have added the debugger.script to my main collection.
There is some limitation of Lua Local Debugger extension. It updates breakpoints only during pauses, not at the runtime. The issue has already been resolved, but hasn’t merged in 3 years, don’t know why.
Two workarounds:
Call debugger.requestBreak() by some way in your game to request a pause to update all the breakpoint on that moment. For example, by pressing the ‘D’ key.
Try to find and use a fork of Lua Local Debugger where the PR is merged (this one?)
Spine is an external extension that adds functions to the gui namespace. Since it is an external extension, that’s not correct to include its annotations in the annotations releases because it should be avaulable only when the external extension is added to the project.
I see two ways to have annotations for external extensions:
Add lua annotations to the repo of the extension (PR / maintaining). This is a manual way without any perspectives to cover all the existing extensions, but it works out of box.
On the one hand, this is better to do in astrochili/defold-annotations, since all annotation generation is already there. But it is not clear how to run this script in the VSCode extension on the fly, without having to run the Lua runtime.
On the other hand, for the solution to be included in the Defold Kit, it’s better to write it in TypeScript. But then there would be another parser / annotation generator, which is not very optimal…
I don’t know yet which solution is optimal and how the Defold Editor solves this prioblem (script_api + lua language server) for itself.
First off, thanks so much for this extension—really appreciate it!
I have a quick question: Is it possible to configure the debugger so I can step into library code?
For example, I’m using the Druid framework, and when I try to step into a library function, the debugger only shows the filename and line number but not the actual code.
I know this works when debugging in the Defold editor, so I’m wondering if there’s a setting I need to adjust in VS Code to get the same behavior.
Theoretically it should work if you add the workspace storage path from the .vscode/settings.json file (e.g. ...workspaceStorage/.../astronachos.defold/) to the Local Lua Debugger launch configuration file .vscode/launch.json.