title: gdb "No debugging symbols found in blender.exe"
body: <p>When I run <code>build_windows_x64_vc17_Debug\bin&gt;%gdb% blender.exe</code> I can see this in the gdb-console:</p>
  <pre><code>Reading symbols from blender.exe...
  (No debugging symbols found in blender.exe)
  </code></pre>
  <p>I am building Blender from source via <code>make debug developer ninja</code>, <strong>am I wrong expecting it to contain debugging symbols?</strong> (The resulting blender.exe has 498MB, if that can be considered a sign of anything.)</p>
  <p><strong>The -g flag?</strong></p>
  <p>On several places I read that one should add -g flag so I added it (and then -ggdb too) into environmental variables:</p>
  <pre><code>set CFLAGS=-g
  set CXXFLAGS=-g
  </code></pre>
  <p>...and into blender\CMakeLists.txt right after <code>project(Blender)</code>:</p>
  <pre><code>set(CMAKE_C_FLAGS &quot;${CMAKE_C_FLAGS} -g&quot;)
  set(CMAKE_C_FLAGS_DEBUG &quot;${CMAKE_C_FLAGS_DEBUG} -g&quot;)
  set(CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -g&quot;)
  set(CMAKE_CXX_FLAGS_DEBUG &quot;${CMAKE_CXX_FLAGS_DEBUG} -g&quot;)
  </code></pre>
  <p>...and also here in the same file:</p>
  <pre><code>set(PLATFORM_LINKFLAGS &quot;-g&quot;)
  set(PLATFORM_LINKFLAGS_DEBUG &quot;-g&quot;)
  </code></pre>
  <p>...the log is then full of &quot;cl : Command line warning D9002 : ignoring unknown option '-g'&quot;</p>
  <p><strong>Point to the pdb?</strong></p>
  <p>I also tried <code>%gdb% --symbols=blender.pdb blender.exe</code>, no difference.</p>
  <p>My platform is Windows 10 with VS2022 binaries/libraries.<br />
  I doubt it matters but this is my version of gdb:</p>
  <pre><code>GNU gdb (GDB; JetBrains IDE bundle; build 145) 10.2
  ...
  This GDB was configured as &quot;x86_64-w64-mingw32&quot;.
  </code></pre>