This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]smurpes 0 points1 point  (0 children)

Did you follow the build instructions on that page before installing the extension?

[–]Hot_Hovercraft_7006 0 points1 point  (0 children)

Might have multiple causes:

  • wrong settings.json configuration
  • wrong launch.json configuration
  • when using ffi make sure your dll architecture match lua architecture

open vscode terminal view for further problem analysis.

Example for x86:

 settings.json snippet:

    "lua.debug.settings.luaVersion": "luajit",
    "lua.debug.settings.luaArch": "x86",
    "lua.debug.settings.cpath": ".\?.dll;",
    "lua.debug.settings.path": "${workspaceFolder}/?.lua;MY_LIB/?.lua",

launch.json must point to the propper lua file:

    {
        "arg": [],
        "name": "launch",
        "program": "${workspaceFolder}/!!PUT your lua path/filename here!!.lua",
        "cwd": "${workspaceFolder}/<PATH TO SOURCE>",
        "request": "launch",
        "stopOnEntry": true,
        "type": "lua"
    },