Skip to content

Debug OpenDebugAD7 for VS Code

Andrew Wang edited this page Dec 10, 2021 · 3 revisions

The best way to debug OpenDebugAD7 for VS Code is to run the published build of it and run OpenDebugAD7[.exe] --server --pauseForDebugger

Then in the VS Code launch.json configuration add "debugServer": 4711

Below are instructions on how to attach to the process depending on what Operating System you are using.

Windows

On Windows, you can use Visual Studio to debug OpenDebugAD7.exe or use the similar steps below for Linux or macOS for debugging in VS Code.

Steps:

  1. Open src/MIDebugEngine.sln.
  2. Go to Debug -> Attach to Process
  3. Attach to the OpenDebugAD7.exe process. Note: If developing in WSL, you can use the WSL Transport Type to debug in Visual Studio.

Linux or macOS

  1. Open the MIEngine project folder
  2. Create a launch.json with the following configuration:
{
   "name": ".NET Core Attach",
   "type": "coreclr",
   "request": "attach"
}
  1. Start debugging and attach to the OpenDebugAD7 process.
Clone this wiki locally