I'm trying to debug javaclient interfaces with the player stage plugin
(I use version 4.0.1 ... GREAT JOB!)
I'm unable to visualize debug messages in the console. I have tried to
configure the release option on cmake, but this doesn't activate the
-DDEBUG flag needed to activate the PRINT_DEBUGX macros.
As a temporary solution, I have manually added a #define DEBUG to
enable the macros, but
I would prefer a more elegant solution (with CMake).
Anyway, when the macros are enabled, some compilation and runtime
errors arise (of course all placed on calls to PRINT_DEBUGX). I have
corrected all compilation errors and hopefully, all runtime errors (as
they are pointed by warnings). The patch attached to this e-mail do
the job. I'll open a patch on sourceorge patch tracking tool.
From: Jan Schlüter <playerstage@ja...> - 2010-12-11 12:38:44
> I'm unable to visualize debug messages in the console. I have tried to
> configure the release option on cmake, but this doesn't activate the
> -DDEBUG flag needed to activate the PRINT_DEBUGX macros.
Try adding "-DDEBUG" to CMAKE_CXX_FLAGS -- either in ccmake after
switching to advanced mode by pressing "t", or in cmake if you figure
out the command line.