Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How get that step into (F5) work with Qt exec mthod ?(Eclipse CDT step into execution of Qt exec method.)
How get that step into (F5) work with Qt exec mthod ? [message #1819500] Thu, 16 January 2020 06:43 Go to next message
Eclipse UserFriend
I am trying to debug with Eclipse a C++ application that uses Qt.

The source code of interest in the main class is:

int rCod = 0;

MyClass myapp(argc, argv);
myapp.processParams(argc, argv)
myapp.startapp();
rCod = myapp.exec();

Where:
MyClass inherits from QCoreApplication, that is defined on /home/myuser/Qt5.6.3/5.6.3/gcc_64/include/QtCore/qcoreapplication.h
MyClass::MyClass is the class constructor
MyClass::processParams and MyClass::startapp are public methods.

When I debug this application using Eclipse and press F5 (step into) I can see the source code that is going to be
executed in processParams and startapp methods, but when the next insttruction to execute is
rCod = myapp.exec();
and I press F5, I can not see the code being executed.

How can I solve this?
Re: How get that step into (F5) work with Qt exec mthod ? [message #1819614 is a reply to message #1819500] Sat, 18 January 2020 06:01 Go to previous messageGo to next message
Eclipse UserFriend
I have little experience in using eclipse to debug a C++ application and I really do not know if it is not possible to debug after executing exec or I am not doing it in the right way.
Any comments or suggestions are welcome.
Thanks.
Re: How get that step into (F5) work with Qt exec mthod ? [message #1819622 is a reply to message #1819614] Sat, 18 January 2020 11:46 Go to previous message
Eclipse UserFriend
I've never used Qt5 but if it's anything like GTK then it's probably multithreaded in a loop waiting for an event.
The same thing happens with GTK.
It just takes off
I doubt you would find anything there interesting.
I debug the GTK routines by placing breakpoints in specific widget handlers.

Probably the only way to step through the code is by using the Disassembly view
https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_dissassembly_view.htm


Previous Topic:Unresolved Includes
Next Topic:whoops I did it again - where is system wide "console wrap lines " setting?
Goto Forum:
  


Current Time: Thu Jun 12 17:22:55 EDT 2025

Powered by FUDForum. Page generated in 0.03217 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top