Debugging Autoscoper - Tips and Tricks
Debugging Autoscoper can be a challenge, due to the separation of the GUI and the backend. This page will provide some tips and tricks for debugging Autoscoper.
Note
These instructions are for debugging Autoscoper on Windows using Visual Studio (2022 at the time of writing).
Setting up Breakpoints for the Backend
Autoscoper’s backend is written in C++ and is compiled as a library. This means you will have to do some extra work to set up breakpoints in the backend.
Compile Autoscoper in Debug mode.
Navigate to the inner build directory (e.g.
C:\Users\username\Documents\Autoscoper\Main-build\Autoscoper-build
).Open the
Autoscoper.sln
file in Visual Studio.Set the startup project to
INSTALL
.Open the
INSTALL
project’s properties.Navigate to
Configuration Properties > Debugging
.Set the
Command
to be$(ProjectDir)install\bin\autoscoper.exe
. This should be the location of the installed Autoscoper executable (ie. The location of theautoscoper.exe
file and all of the necessary DLLs).From the main Visual Studio window, Navigate to
Tools > Options > Debugging
.Uncheck
Enable Just My Code
.
You should now be able to set breakpoints in the backend code.