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!
Regards -
@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.
-
S SteMMo has marked this topic as solved on