What is equals of Visual Studio .Net [DebuggerStepThrough] in QT?



  • I'm gonna ignore some line for debugging in QT.
    I know, I can do it in Visual Studio .Net with [DebuggerStepThrough]
    http://www.debuggerstepthrough.com/2013/01/some-good-to-know-c-attributes.html

    but I wanna the equals of this code in QT, C++.
    Is there a code in QT for this purpose, if not, How I can do it in QT?


  • Moderators

    Hi, welcome to devnet.

    Qt (not QT which is Apple QuickTime) is just a library. It has nothing to do with debugging.
    C++ language doesn't have such annotations so features like this depend on the compiler and debugger you use.

    The supported toolchains on windows include MCVC+CDB and MinGW+gdb.

    I'm not sure about the second combo, but AFAIK there is no (official at least) way to do that with MSVC and CDB. There is an undocumented .natstepfilter file that you can edit to mark some functions to be stepped over, but I personally never managed to make it work and I'm not sure if they apply to the CDB outside VS either. Anyway a few words about it here. Would love to hear from you if you get it to work.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.