Buggregator is a beautiful, lightweight debug server build on Laravel that helps you catch your smpt, sentry, var-dump, monolog, ray outputs. It runs without installation on multiple platforms.
This extension implements a debug adapter for MTA:SA's (Multi Theft Auto: San Andreas) Lua. Note that it doesn't work with plain Lua though.
Features
Breakpoints
Step into, Step over
Variable lists (locals, upvalues, globals)
Resource restarts
Integrated runcode via VSCode's "Debug Console" feature
Screenshots
Planned Features
Step into functions (+ return from function)
Stack traces
Variable editing
Unit Tests
Usage
When you start debugging, Visual Studio Code asks you to create a new launch configuration based upon a default configuration.
Make then sure you insert a valid serverpath (the path to the server folder withoutMTA Server.exe).
Add the debug bundle to your project by executing the command MTA:TD: Add bundle to current project (press F1, enter the command and submit). This only works if you opened the root folder of your resource (meta.xml lies there).
Add the bundle file to your meta.xml:
<scriptsrc="MTATD.bundle.lua"type="shared"/>
Launch the debug test server by pressing F1 in Visual Studio Code and entering MTA:TD: Start MTA Debug Server (the auto-completion will help you). You could also create a key mapping for this command.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].