Jump to content
Josh

Command-line debugger for Leadwerks

Recommended Posts

This by default will debug a game located at "../testgame/testgame.debug.exe".

When you start the debugger the game is automatically paused. It will stop at a random point when the pause message is received. The game will then send the Lua callstack back to the debugger. You can then type the following commands in:

  • resume
  • step
  • stepin
  • stepout
  • quit

You cannot pause the game once it resumes because the user input would block the program execution.

However, this is enough to start working on a debug adapter for Visual Studio Code. I expect my design will need a few changes to be able to talk to VSCode but that's okay.

Debugger.zip

What you see here is the format the game uses to send the callstack to the debugger and the editor. Brackets are used to denote children in a tree structure. It's actually very simple.

Image1.jpg.439f4d4368a4cf50e98e9df22dcadc0f.jpg

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...