Development Book V17:Debugging

Odoo.sh offers various features designed for debugging purposes.

Branch history

Within the History menu of a branch, you can access a comprehensive overview of the build history for that specific branch. This section provides insights into logs, merges, new commits, and database restores.

odoo-development

Mail catcher

In the Development and Staging branches, the mail servers are restricted, and they do not send real emails. If you want to test your email system before deploying new features to production, you can use the mail catcher in the Development and Staging branches. It will display all outgoing emails.

In the MAILS tab, you can see a list of all the captured mail with all attachments. The MAILS tab will only be displayed in the staging and development branches.

odoo-development

Web shell

You can access the web shell, providing a gateway to the source code, logs, file store, and more. This interface encompasses all typical shell features, incorporating editors like nano and Vim. With shell access, you gain the ability to navigate between different directories and perform various operations. Additionally, the pip command is available for installing Python packages.

In certain situations, you might need to restart the server or update a module directly from the shell. To restart the server, employ the following command:

odoosh-restart

For updating a module, execute the following command in the shell:

Odoo-bin -u my_custom --stop-after-init

This command specifically updates the my_custom module. If you intend to update multiple modules simultaneously, you can provide module names separated by commas.

whatsapp
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message