I have been developing on xcode so far but now I need to debug windows specific problem, and I can’t find those prints anywhere - not even the immediate window. Any suggestions?
Edit: Using visual studio 2015 professional here, should be the same…?
Do you maybe set a Logger? If so, it can override the behaviour of Logger::outputDebugString(const String& text), which is called by the DBG macro.
One other thing would be to set a breakpoint next to the DBG, whose output you are missing, maybe it is not called…? You never know…
I don’t, not by myself at least, but the code base is not all of my doing so I’ll have to check. Thanks for the tip!. I am certain that those lines of code do run, as I get none of those DBG macros to print out currently. And certainly some of them are located in such places that the application would not work at all if those lines were not encountered.
How should I override that logger behavior? Now it produces the same results, which is nothing on the output console.
Example: these are the first lines that are run at the startup so can’t be missed:
…and from those nothing shows up. Cout not showing up is understandable as we are speaking about visual studio, but what is it that can be wrongly configured with the logger/DBG -macro that would impede it printing out to this console window in visual studio:
That line Logger::setCurrentLogger(filelogger) requires a pointer to a subclass of Logger as its only parameter, but that line gives me an error: no type named setCurrentLogger in juce::Logger. Any suggestions why this might be happening, or what I should do differently?
Visual Studio and XCode both give an error from the third line of that snippet. XCode says “No type named ‘setCurrentLogger’ in ‘juce::Logger’”, and Visual Studio says:
Edit: confirmed, they think I’m trying to redeclare that Logger::setCurrentLogger() -method
In other news, I got the DBG macro to work finally! I had basically release settings under my debug in the project file, which means that those DBG macros did not get compiled - feeling a bit dumb right now