This repository contains the GDB binary files required for debugging GlistEngine applications on Windows.
Before setting up the debugger, you need to create a proper Debug build configuration:
- Right-click your project -> Properties
- Navigate to C/C++ Build
- Click Manage Configurations...
- Select the existing Debug configuration and click Delete
- Click New...
- Set both Name and Description to:
Debug - Under Copy settings from, select Existing configuration
- From the dropdown next to it, select Release
- Click OK, then OK again to close the dialogs
Windows developers must add the following directory to their GlistApp project's PATH:
;${workspace_loc}\..\..\..\..\glistplugins\gipDebug\libs\bin
To add this:
- Right-click your project -> Properties
- Navigate to C/C++ Build -> Environment
- From the Configuration dropdown list, select Debug
- Double-click PATH and add the path above to the end of your existing PATH variable
- From the menu bar, click Run -> Run Configurations...
- Select your existing Release configuration (e.g., "GlistApp Release")
- Click the Duplicate button (two stacked documents icon) in the top-right
- Rename the new configuration to "[ProjectName] Debug"
- Update the C/C++ Application path:
- Change from:
_build/Release/ProjectName.exe - Change to:
_build/Debug/ProjectName.exe
- Change from:
- Set Build Configuration to Debug
- Click Apply, then Close
- Locate the toolbar dropdown menu next to the Build/Run/Stop buttons (top left of your screen)
- Select Debug from the dropdown (the Run icon will change to a bug icon)
- In the Run Configuration dropdown, select your newly created Debug configuration (e.g., "GlistApp Debug")
- Click the bug icon to launch your application in debug mode
If the debugger displays assembly view instead of your source code, you need to ensure debug symbols are generated during compilation.
Solution:
Open your project's CMakeLists.txt file and add the following line immediately after the project() declaration:
set(CMAKE_BUILD_TYPE Debug)Example:
project(YourProjectName)
set(CMAKE_BUILD_TYPE Debug)After adding this line, clean and rebuild your project to generate the debug symbols.