Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator hangs in debug mode on shell command execution
Forum Updated to NodeBB v4.3 + New Features

QtCreator hangs in debug mode on shell command execution

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 712 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.
  • D Offline
    D Offline
    dbondarevych
    wrote on 3 Mar 2014, 11:28 last edited by
    #1

    Hi!
    I have met a problem with debug mode in QtCreator 2.7.1 based on QT 5.0.2 (64 bit). Linux, Ubuntu.
    Here is a simple code to reproduce:

    @#include <iostream>
    #include <stdlib.h>

    using namespace std;

    int main(int argc, char** argv)
    {
    cout << "Before system call..." << endl;

    system&#40;"pwd"&#41;; // Hangs here in debug mode!!!
    
    cout << "After system call..." << endl;
    

    }@

    In Run mode, works fine, output is:
    Before system call...
    /home/...
    After system call...

    In Debug mode, hangs on system("pwd"), output is:
    Before system call...

    Project settings:
    TEMPLATE = app
    TARGET = main
    QT -= core gui

    SOURCES += ../main.cpp

    Please, help to investigate and configure project or environment properly.

    1 Reply Last reply
    0

    1/1

    3 Mar 2014, 11:28

    • Login

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