lua-debug
lua-debug copied to clipboard
Remote debug LUA in program C++
I use LUA in my C++ program as a scripting language. How can I debug my scripts that have custom functions from my C++ program? It can be sample code, C++ and LUA. The idea is to use my program as a server for debugging.
https://github.com/actboy168/lua-debug/tree/master/examples/standalone
I don't understand this. I don't see anything in debugger.lua that looks like it interfaces with VSCode. All it does it replace the dofile command? What is the "publish" folder?
until today I didn't understand.
until today I didn't understand.
Add this line to your lua program main file:
require "debugger":start "0.0.0.0:12306":event "wait"
Copy .vscode
folder from ./lua-debug/examples/attach
to your program's lua folder
Copy debugger.lua
from ./lua-debug/examples/attach
to your program's lua folder
Run your program
Open your program's lua folder in VS Code and press F5
If you installed plugin correctly then you must have actboy168
extensions in your C:\Users\USER_NAME\.vscode\extensions
folder.