Debug output in a C++ library
-
wrote on 15 Mar 2024, 09:47 last edited by
Hi all,
I'm developing a pure C++ static library.
This library is linked to a Qt application.
How can I generate debug messages in the library?
I'm developing with VS environment in Windows and VSCode on iOS.I'm trying with
cout <<"xyz"
andprintf()
but they are not shown in Debug window..Thanks!
Regards -
Hi all,
I'm developing a pure C++ static library.
This library is linked to a Qt application.
How can I generate debug messages in the library?
I'm developing with VS environment in Windows and VSCode on iOS.I'm trying with
cout <<"xyz"
andprintf()
but they are not shown in Debug window..Thanks!
Regardswrote on 15 Mar 2024, 16:28 last edited by@SteMMo said in Debug output in a C++ library:
Hi all,
I'm developing a pure C++ static library.
This library is linked to a Qt application.
How can I generate debug messages in the library?
I'm developing with VS environment in Windows and VSCode on iOS.I'm trying with
cout <<"xyz"
andprintf()
but they are not shown in Debug window..Thanks!
RegardsRedirect the stdout somewhere else such as a pipe or even just a file and read from there in the your Qt app.
But you could also create an abstration for IO that your library uses and then your Qt host applicadtion can just implement it. Easier.
-
1/2