GithubHelp home page GithubHelp logo

xp-luadap's Introduction

LuaDAP for X-Plane

A plugin that provides Debug Apater Protocol capabilities to X-Plane Lua plugins.

All heavy lifting is done by the LRDP project.

Integration with your plugin:

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.

Finding LuaDAP:

XPLMPluginID to = XPLMFindPluginBySignature("LuaJIT-2.1.0-b3.LuaDAP.x-plugins.com");

Requesting debug attach:

XPLMSendMessageToPlugin( to, 0x1, L );

Requesting debug detach:

XPLMSendMessageToPlugin( to, 0x0, nullptr );

Using LuaDAP with VSCode:

LuaDAP has only been tested with Gizmo-Avionics.plugin

  1. Install the LDRB extension for VSCode.
  2. Open your scripting project with VSCode.
  3. Create a .vscode folder in the root of your project tree.
  4. Copy the usage/launch.json file from this repository into the new .vscode folder.
  5. Edit launch.json and set the sourceRoot value to match the full path to your project scripts folder.
  6. Configure your project so it asks the Lua host plugin to attach to LuaDAP.xpl, for Gizmo-Avionics.plugin this is gizmo.attachDAP()
  7. Start X-Plane with the LuaDAP plugin installed.
  8. From the VSCode menu select Run / Start Debugging

xp-luadap's People

Contributors

benrussell avatar

Stargazers

Justin Snapp avatar

Watchers

 avatar Justin Snapp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.