A plugin that provides Debug Apater Protocol capabilities to X-Plane Lua plugins.
All heavy lifting is done by the LRDP project.
LuaDAP accepts XPLMSendMessage(..)
commands to attach and detach from your plugins lua_State pointer.
LuaDAP is compiled with the Lua version string in its plugin signature to avoid incompatibilities.
XPLMPluginID to = XPLMFindPluginBySignature("LuaJIT-2.1.0-b3.LuaDAP.x-plugins.com");
XPLMSendMessageToPlugin( to, 0x1, L );
XPLMSendMessageToPlugin( to, 0x0, nullptr );
LuaDAP has only been tested with Gizmo-Avionics.plugin
- Install the LDRB extension for VSCode.
- Open your scripting project with VSCode.
- Create a
.vscode
folder in the root of your project tree. - Copy the
usage/launch.json
file from this repository into the new.vscode
folder. - Edit
launch.json
and set thesourceRoot
value to match the full path to your project scripts folder. - Configure your project so it asks the Lua host plugin to attach to LuaDAP.xpl, for Gizmo-Avionics.plugin this is
gizmo.attachDAP()
- Start X-Plane with the LuaDAP plugin installed.
- From the VSCode menu select
Run / Start Debugging