lua-debug icon indicating copy to clipboard operation
lua-debug copied to clipboard

Multiple files

Open Frityet opened this issue 3 years ago • 5 comments

How would I debug multiple files (my main file requires other files)?

Frityet avatar Nov 11 '22 23:11 Frityet

Set the correct path in launch.json

actboy168 avatar Dec 05 '22 06:12 actboy168

@actboy168 I recently had the same issue and resolved it by creating the following vscode debug launch.json file

        {
            "name": "Lua App",
            "path": "${workspaceFolder}/path/to/my/lua/app/?.lua",
            "program": "${workspaceFolder}/path/to/my/lua/app/main.lua",
            "request": "launch",
            "stopOnEntry": true,
            "type": "lua"
        }

derryspann avatar Dec 05 '22 07:12 derryspann

Set the correct path in launch.json

Will try

Frityet avatar Dec 06 '22 00:12 Frityet

@actboy168 even with the program running fine, debugging only works in the main file

Frityet avatar Jan 05 '23 01:01 Frityet

You need to say what you did, not just say it didn't work.

actboy168 avatar Jan 05 '23 01:01 actboy168