vscode plugin feature request

Discussion in 'Ideas and Suggestions' started by fillman86, Jun 24, 2025.

  1. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    187
    I know this is asking for something huge, and you're probably moving more towards your own flow graph visualiser thing too anyway, making my suggestion obsolete. I'd like to get info about table stuff from the vscode plugin. If I (and other new modders) knew more about coding, we wouldn't need it, and I'm trying to learn, but I'm still limited.

    I don't always know how to use the dump() feature in the console to get what I want, or how to print() either, but I can see the table in a lua file. I'd like to be able to mouse over and see how I'd dump it in the console (or be told that it can't be dumped). Or click/right-click on a table and "trace" how it's made, and I do realise that this means you'd have to have the lua or beamng root folder open, but I personally do that already, and it's already a requirement for some of the fantastic blender pluging functions.

    Currently I struggle to tell all the different ways that tables are made, so tracing what's in something can take hours (if I succeed at all). This would be handy, but once again, I bet it'd be really hard, or it might already exist in a different plugin. If you have a plugin to suggest, please let me know, I've tried to look, but maybe I don't know the right words to search for.
     
  2. jamessimo

    jamessimo
    Expand Collapse

    Joined:
    Nov 28, 2018
    Messages:
    107
    Just want to +1 this request.

    Something I do is I load the entire LUA directory into VScode and open it as a workspace. That way I get pretty good intellesense for code auto complete. It wouldn’t tell me what’s in a table tho. I think that would require some sandboxing/vm magic.
     
  3. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    518
    And attaching the debugger starting beamng with the debug switch helped me a lot. There is an vscode extension for debugging beamng lua if I remember correctly. You can set a breakpoint then and take a look at the content of a variable.
     
    • Like Like x 2
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice