Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOlved] qmake - Console only in debug
Forum Updated to NodeBB v4.3 + New Features

[SOlved] qmake - Console only in debug

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 4.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JulienMaille
    wrote on last edited by
    #1

    I would like to show the console when debuging my application, but not in release.
    I tried to add this in my .pro but it always shows the console (I'm compiling with msvc)
    @# ==== Pass Detection =====
    build_pass {
    CONFIG(release, release|debug) {
    MODE = release
    }
    CONFIG(debug, release|debug) {
    MODE = debug
    TARGET = $$join(TARGET,,,_debug)
    }
    }
    !build_pass:MODE = common

    ==== Keep console in debug =====

    win32: release: CONFIG -= console
    win32: debug: CONFIG += console@
    Any tips?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JulienMaille
      wrote on last edited by
      #2

      Stupid error:
      @# ==== Keep console in debug ====
      contains(MODE, debug) {
      CONFIG += console
      }
      contains(MODE, release) {
      CONFIG -= console
      }@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved