Results 1 to 7 of 7

Thread: Debugging in QT Creator

  1. #1
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Debugging in QT Creator

    Hi everyone!

    I'm trying to debug a program that was made on an older QT version (dont know wich one), after having troubles with the .pro file finally it builds and compiles properly.

    The "stop" point is on the main.cpp

    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3. [B] QApplication app(argc, argv);[/B]
    4. Q_INIT_RESOURCE(camcontrol);
    5. MainWindow mainWin;
    6. mainWin.show();
    7. return app.exec();
    8. }
    To copy to clipboard, switch view to plain text mode 

    Nothing after the call of QApplication is debugged, the argument of argv is the .exe file of my program, and on the debug window it sais... Stopped: "Signal-recived" from some point inside the function.

    I tried to step into that function and other one and so on.... but found (understood) nothing.

    Any idea?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging in QT Creator

    Is the debugging helper installed?

  3. #3
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging in QT Creator

    I dont know how it looks like but it is checked on Tools->Options

    • Use debugging helper

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging in QT Creator

    It should show the versions of Qt installed and whether or not the debugging helper is available for that version. Maybe sure the version for the code you are debugging is available.

  5. #5
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging in QT Creator

    Hi, i created a new project to make sure it works properly,but i have some problems.... i checked about debugging helper, i looked tools->options and qt Versions, there was a green tick indicating that its installed, but i clicked the 'Rebuild' button, and i got this:

    Qt Code:
    1. \mingw32\bin\ld.exe: cannot open output file debug\gdbmacros.dll: Permission denied
    2. collect2: ld returned 1 exit status
    3. mingw32-make[1]: *** [debug\gdbmacros.dll] Error 1
    4. mingw32-make[1]: Leaving directory `C:/Qt/2009.04/qt/qtc-debugging-helper'
    5. mingw32-make: *** [debug-all] Error 2
    To copy to clipboard, switch view to plain text mode 

    i'm not an expert but.... there is something wrong!!!

    i have QT Creator 1.2.1 and qt 4.5.3

  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging in QT Creator

    You are correct, there is something wrong, and that something is that it can't create the file due a permission denied error. You need to fix that error and try again.

    I'd say the error is either because you don't have permission (check readonly flag, user credentials) or because the file is in use.

  7. #7
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging in QT Creator

    I closed all my projects and i finally could rebuild debugging helper, but i get stuck at the same point as 1st post....

    how can i debug my program?

Similar Threads

  1. Remote debugging with Qt Creator
    By rodrigotavares in forum Qt Tools
    Replies: 4
    Last Post: 3rd February 2010, 19:15
  2. Qt Creator debugging trouble on Mac OS
    By johnmidd in forum Qt Tools
    Replies: 5
    Last Post: 6th November 2009, 13:34
  3. debugging in QT Creator
    By talk2amulya in forum Qt Tools
    Replies: 3
    Last Post: 22nd February 2009, 07:50
  4. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 20:56
  5. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 17:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.