It working for me in RemedyBG 0.3.7.1, using MSVC 2019 and compiling with cl main.cpp -Zi
.
What version of RemedyBG do you use ? Which compiler and build flags ?
With MSVC you need Zi
, I believe Z7
is not supported by RemedyBG.
For clang you need -gcodeview
to generate MSVC style debug information.
clang main.cpp -g -gcodeview
EDIT: It doesn't work with clang when using C instead of CPP.
Seems like Clang's PDB gen is bugged in this case (missing forward reference used by main::POG*
). Visual Studio / WinDBG also cannot dereference pp
. Visual Studio is actually worse in that it cannot even show p
properly for some reason. The bug can persist if the PDB was first generated with clang and not deleted before running cl
.
Running cl /Z7 main.c
works fine (after first deleting the PDB that Clang gen'd).