VS Code - Launch and Debug

Hi all !

I just begin to work with Defold using VS Code (because of habits, plugins, fonts…).
It is working fine with the Defold API

I wonder if there is a way to :

  • build and launch from VS Code
  • use the VS Code built-in debugger (for quick value overview, conditional breakpoint …)

I saw a topic refering to these plugins, but I am not sure how to configure them :

Thanks!

1 Like

Would also love to hear the answer to this, I am currently using 4 different IDEs on different projects and would love to reduce this as much as possible.

I don’t think that Lua Debugger works with Defold, which uses Lua 5.1.

I’m using these plugins for VSCode:

With this config:

4 Likes

For pure lua debugging I use Tom Blind extension. Works perfectly with lua 5.1-5.3 and has a comfortable set of possibilities. I used it to develop whole narrator library.

Unfortunately, I don’t know how to connect it to a Defold game right now, but it can be realistic. It has custom environment settings and an example how to run it with love2d or busted. I think that needs to check for ability to setup with bob?

1 Like

Thank you for sharing these extensions and settings, I will give a try