In this chapter, we will look at a series of methods that we can use to debug our AI systems. Of course, they can be used in general, and not only for AI. However, since AI can be tricky sometimes, mastering how to do proper logging in Unreal can be a time-saver when you need to find and fix a bug related to AI. In fact, often, due to variables that haven't been properly set, maybe with wrong values, we end up not executing a portion of code, or make a miscalculation.
In this chapter, we will cover the following topics:
- Console Logging and on-screen messages in Blueprint
- On-screen messages in C++
- Console Logging in C++
- Creating a Custom Logging Category (C++)
By mastering the art of logging, you will be able to easily keep track of your values and which part of the code you are executing. Moreover, creating a Custom Logging Category allows...