In Chapter 5, Basic Server-Side Development, we saw how to write model methods to implement the logic of our module. However, we may get stuck when we encounter errors or logical issues. In order to resolve these errors, we need to perform a detailed inspection and this may take time. Luckily, Odoo provides you with some debugging tools that can help you to find the root cause of various issues. In this chapter, we will look at various debugging tools and techniques in detail.
In this chapter, we will cover the following recipes:
- The auto-reload and
- Producing server logs to help debug methods
- Using the Odoo shell to interactively call methods
- Using the Python debugger to trace method execution
- Understanding the debug mode options