I'm building a windows exe using bazel (release 4.1.0). I'm building by first opening the "x64 Native Tools Command Prompt For VS 2019" in order to set the environment to use VS 2019 build tools and then use that command prompt to compile via
bazel --bazelrc windows.rc build --verbose_failures -c opt myproject:mytargetin my windows.rc I added the following lines:
#embed debug symbolsand this causes the resulting exe to get significantly bigger. But when I then attach the Visual Studio 2019 Debugger to the process, Visual Studio nevertheless tells me "Binary was not built with debug information."
What else do I need to do to be able to attach the debugger and have debugging symbols loaded?