What is equals of Visual Studio .Net [DebuggerStepThrough] in QT?
qasem last edited by
I'm gonna ignore some line for debugging in QT.
I know, I can do it in Visual Studio .Net with [DebuggerStepThrough]
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?
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
.natstepfilterfile 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.