CD-CD maker not working

I am using the latest version of the Qt SDK (2.4.0) and I have problems with the CDB visual studio 2008 working properly. I have the following two problems which, in my opinion, are related.

  • I have a statement that fails. When this statement fails, I see a Visual Studio dialog asking me if I want to interrupt, repeat, or ignore. If I choose Retry, the program will not break as it should, instead it just continues execution. However, if I put a breakpoint before this assert, and then go through that line in the debugger, then when I click Retry, the program will break as expected.

  • All breakpoints that are in place before the start of the run fall correctly. However, if I try to add a breakpoint after start, this breakpoint will be ignored. But, if it is stopped, I add more breakpoints, then they hit correctly.

It seems that the debugger only works after I manually stopped it with a breakpoint. Does anyone know what is going on here?

I am using the Windows 7 64-bit Qt SDK for Windows 32

+4
source share
1 answer

For your first question, I think you are not highlighting the "object" that you are using. Sort of:

//header file: class Foo : blabla { public: Foo(); private: QSomething *m_fie; }; //source file: Foo::Foo() { m_fie->IWant2UseItNow(); } 

If your debugger is not working, you can try adding:

 #include <QDebug.h> 

and a few lines of print. i.e:.

 //source file: Foo::Foo() { qDebug() << "1"; m_fie->IWant2UseItNow(); qDebug() << "2"; ... } 

For your last question, qtcreator will help you work less. This does not do something better than another IDE, but it is integrated with qt. This can help you avoid many .pro file configurations. Infact to properly debug your application, which you must define in your project file:

 CONFIG += debug_and_release 

or at least:

 CONFIG += debug 

qtcreator does this for yours.

0
source

Source: https://habr.com/ru/post/1389714/


All Articles