title: Qt debugging in release mode - all methods not working
body: <p>I am trying to build my <code>Qt</code> app with <code>MinGW</code> in <code>QtCreator</code> in order to try and debug a release-only crash. </p>
  
  <p>Here is what I put in my <code>.pro</code> file (also tried putting it directly into <code>qmake.conf</code>):</p>
  
  <pre><code>QMAKE_CFLAGS_RELEASE += -g
  QMAKE_CXXFLAGS_RELEASE += -g
  QMAKE_CXXFLAGS += -g
  </code></pre>
  
  <p>as well as tried with</p>
  
  <pre><code>QMAKE_CFLAGS_RELEASE += -ggdb
  QMAKE_CXXFLAGS_RELEASE += -ggdb
  QMAKE_CXXFLAGS += -ggdb
  </code></pre>
  
  <p>I tried them separately or together like this:</p>
  
  <pre><code>QMAKE_CFLAGS_RELEASE += -g
  QMAKE_CXXFLAGS_RELEASE += -g
  QMAKE_CXXFLAGS += -g
  QMAKE_CFLAGS_RELEASE += -ggdb
  QMAKE_CXXFLAGS_RELEASE += -ggdb
  QMAKE_CXXFLAGS += -ggdb
  </code></pre>
  
  <p>I have also manually edited the generated <code>Makefile</code>(<code>Makefile.Release</code> to be exact and checked <code>Makefile.Debug</code> just in case) to remove the <code>NO_DEBUG</code> flag (I don't know why it was being put there) and to make sure the <code>-g</code> and <code>-ggdb</code> flags are there.</p>
  
  <p>The result of all of this is that the app took almost twice as long to build, however it was exactly the same size as before and didn't have any debugging symbols and trying to debug it didn't succeed. </p>
  
  <p>What else can I do? I know it's possible, but looking for other answers only directed me to using those flags and that didn't help at all(only made build slower)</p>