Pcl: How to display the debug info in console?

Created on 30 Oct 2020  路  4Comments  路  Source: PointCloudLibrary/pcl

Hello, thank you for your nice code.
I have a question in debugging pcl source code. There are many places using "pcl::console::print (pcl::console::L_DEBUG, __VA_ARGS__)", but I could see nothing in cosole. How to display the debug info? (any macro definition?)
Thank you for your reply.

Regards,

question common author reply

All 4 comments

If you add this command to the start of your program, PCL will show all debug/logging: pcl::console::setVerbosityLevel(pcl::console::L_VERBOSE);. Here is the documentation.

Thank you for your reply. I will try it.

If you wish to not modify your code (for any reason), you can also use environment variables to achieve the same result.

PCL_VERBOSITY_LEVEL can be ALWAYS, ERROR, WARN, INFO, DEBUG, VERBOSE as and when needed.

There's another variable that might be helpful if you're using some other facility to log your logs: PCL_CLICOLOR_FORCE. If it's set to any valid string, it'll force the output to always be colored.

PS: Please close this issue once you're satisfied with the answers

It's a nice answer. Thank you for your reply.

Was this page helpful?
0 / 5 - 0 ratings