Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MTA:SA Debugger and Test FrameworkNew to Visual Studio Code? Get it now.
MTA:SA Debugger and Test Framework

MTA:SA Debugger and Test Framework

jusonex

|
9,058 installs
| (0) | Free
MTA:TD allows you to debug and test your Lua code easily
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MTA:SA Lua Debugger and Test Framework

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

Debugger Screenshot

Planned Features

  • Step into functions (+ return from function)
  • Stack traces
  • Variable editing
  • Unit Tests

Usage

  1. 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 without MTA Server.exe).
  2. 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 root folder of your resource (meta.xml lies there).
  3. Add the bundle file to your meta.xml:
    <script src="MTATD.bundle.lua" type="shared"/>
    
  4. 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.
  5. You're ready to start debugging now!
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft