$ lua -e "require('mobdebug').listen()"
Then run the game from Defold Editor with this script:
local mobdebug = require 'builtins.scripts.mobdebug' function init(self) mobdebug.start() end
And you will see that debugger works fine, all commands like to set breakpoint or to see the stack are available via command line with stdin/stdout.
Has anyone tried to create a mobdebug extension for VSCode? Its debugging architecture with debugger adapter protocol looks very friendly and ready to use with any debugger. The only thing left to do is to make an adapter-extension between mobdebug server and the VSCode debugging UI.
Of course, mobdebug can be used to create a debugger for any other text editor, such as Atom. But in fact Atom does’t have any official and universal debugging UI, so VSCode is more attractive here.