
Step 2, set up deployment of binaries, is required because otherwise the debugging runtime seems to not be available by default in the machine. Step 1, configure debugging to use remote, can be easily done as specified in the link above: right click on the project, debugging, turn on remote debugging, configure the fields as in the link. Basically this can be resumed in two steps: 1) configure debugging to use remote debugging on localhost:ourPort and 2) set up deployment of binaries.
CMAKE DEBUG HOW TO
The basic information to debug the VM using this setup is now the one described in here: how to remote debug c++ apps. Open the solution using Visual Studio: Done! You’re almost there! Configuring the Project for debugging

Now you will see CMake has created a lot of. repo -G "Visual Studio 16 2019" -A ARM64 -DGENERATE_SOURCES=FALSE Notice that this post was only tested in Visual Studio 2019. To manually create it run the following, specifying your own configuration arguments. So, instead of opening a CMake-tailored Visual Studio project, we are going to create a normal Visual Studio solution from the command line, and then open it as a normal solution. Visual Studio CMake integration so far lacks proper support for ARM64 configurations, and most of the debugging options and features one can set from a normal project. Visual Studio CMake integration is nice, though it does not support our debugging use case. Make sure you go to the options and you check the port of the connection or set it to the port of your preference Getting rid of CMake-VS integration (?)
CMAKE DEBUG INSTALL
The first thing to do is to install the Windows Remote Debugger application on the target machine, the machine we want to debug on.īasically, just install the remote tools package, and open it a first time to set up the network configuration.

Installing the Windows Remote Debugger on the ARM64 Machine Yet, there are some glitches and remaining problems. The remote debugger can be used from a separate machine, or from the same machine too, giving mostly the impression of a local debugger. This page covers how to debug the CMake project of the VM on ARM64 using the Windows remote debugger and Visual studio. Moreover, CMake projects cannot be configured to use remote debugging, or I did not find it after hours of searching and googling :). However, as of today, Windows does not support local debugging of ARM64 applications, but only remote debugging.

If you have a Windows ARM64 machine such as the Surface Pro X, chances are you may want to debug native ARM64 applications with it.
