Skip to content

Fix debug console

Martin Schultz requested to merge fixDebugConsole into master

Fixes #77 (closed) , Closes !150 (closed)

The Console is not only opened if -c or --log-to-console is used as command line option, but also if NDEBUG is not defined, as discussed in !150 (closed). Unfortunately this is not the case when relWithDebInfo is used for compilation, for this case the -c parameter is still required.

  • Added corresponding code in OpenFlipper.cc attachConsole function to check NDEBUG define.
  • Removed obsolete WIN_GET_DEBUG_CONSOLE Define from CMake and OpenFlipper.cc as it is not used anymore and did not work properly before
  • Updated documentation of OpenFlipper build process to notify for the console behaviour of debug builds
  • Updated documentation of OpenFlipper command line options to nitify for the console behaviour if -c is used as command line option

Merge request reports