-
Notifications
You must be signed in to change notification settings - Fork 218
Testing OpenDebugAD7
Testing OpenDebugAD7 uses the following test projects:
This project handles compiling, linking, and deploying test projects for specific platforms.
It also defines actual requests (commands), responses, and events. It is built on top of the DebugAdapterRunner test library.
CppTests contains native debuggee projects, the test scripts and test configurations.
CppTests will run the tests using the configuration (config.xml
) which is placed right next to CppTests.dll
. Then it will run the test scripts.
Make sure you have built the solution. See Building MIEngine for VSCode.
Note: You will want to publish at <MIEngine_Root>/bin/DebugAdapterProtocolTests/Debug/extension/debugAdapters
for the tests to discover OpenDebugAD7
Windows is a bit complicated since you will either need to obtain Cygwin, MinGW or MSYS.
-
Ensure you have installed the C++ toolchain and GDB and include where their path is to your environment
PATH
. -
You will want to use config_msys_gdb.xml as a template for your
config.xml
. -
You will want to create
config.xml
at<MIEngine_Root>\bin\DebugAdapterProtocolTests\Debug\CppTests
. -
Then you should be able to run
dotnet test <MIEngine_Root>\bin\DebugAdapterProtocolTests\Debug\CppTests\CppTests.dll
-
Make sure you have the xcode tools installed.
-
You will want to use config_lldb.xml as a template for your
config.xml
. -
You will want to create
config.xml
at<MIEngine_Root>/bin/DebugAdapterProtocolTests/Debug/CppTests
. -
Then you should be able to run
dotnet test <MIEngine_Root>/bin/DebugAdapterProtocolTests/Debug/CppTests/CppTests.dll
-
Make sure you have g++ and gdb installed.
-
You will want to use config_gdb.xml as a template for your
config.xml
. -
You will want to create
config.xml
at<MIEngine_Root>/bin/DebugAdapterProtocolTests/Debug/CppTests
. -
Then you should be able to run
dotnet test <MIEngine_Root>/bin/DebugAdapterProtocolTests/Debug/CppTests/CppTests.dll
- AttachTests failing
- Take a look at Troubleshoot attaching to processes using GDB