glades
glades

Reputation: 4848

What is MIMode in the debug adapter protocol (DAP)?

I'm trying to set up C++ debugging and for the n'th time stumbled across the MIMode key. So I thought it's about time to get a proper understanding of it. I've read the DAP specs already which was very insightful, but I still couldn't see where the MIMode key will change behaviour. The vscode docs just state:

MIMode

Indicates the debugger that VS Code will connect to. Must be set to gdb or lldb. This is pre-configured on a per-operating system basis and can be changed as needed.

But what does this mean? I thought the underlying debugger was specified by the type field:

type

Indicates the underlying debugger being used. Must be cppvsdbg when using the Visual Studio Windows debugger, and cppdbg when using GDB or LLDB. This is automatically set to the correct value when the launch.json file is created.

So how is it different? What exactly is MIMode and what behaviour is influenced by it?

Upvotes: 1

Views: 62

Answers (0)

Related Questions