Skip to content

Interacting with debugger commands at runtime from C++ #87

Description

@gsisinna

Hi everyone,

First, I want to thank you all for the incredible work on this project—it's outstanding!

I followed the guide for embedding debugger.lua into C++ code and generated the necessary header file to define the setup and configuration. Currently, I’d like to interact with the debugger at runtime directly from C++, without requiring user input (e.g., typing "s" for step and pressing ENTER). I’ve tried using the read and write handlers, but I still end up in scenarios where the debugger shell opens, and I have to manually continue with "c".

Could anyone provide guidance on the best approach for handling debugger input and output in a Lua state created from C++? My goal is to redirect debugger I/O through JSON packets.

Thank you very much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions