albertziegenhagel / childdebugger-vscode

VS Code extension to auto-attach a debugger to child processes for `cppvsdbg`.
MIT License
7 stars 0 forks source link

Figure out a better way to communicate with VS Code #7

Open albertziegenhagel opened 3 months ago

albertziegenhagel commented 3 months ago

When the VS Debug Engine extension (this repository) figures out that a child process has been launched it needs to inform the VS Code GUI part that it should attach to the newly created process.

Currently, this is implemented by abusing the DkmUserMessage interface. To the best of my knowledge, these user messages are indented to be used for debug messages that are to be displayed to the user. We currently intercept those user messages in the VS Code extension (the childdebugger-vscode repository) and parse all information about the child process back from the text messages, so that we can then make the VS Code GUI attach to the new process.

This is less then ideal:

Other solutions tried so far, but that didn't work: