Better Way for remote debugging Odoo/Python in docker container with Eclipse + Pydev?
I always use logging to debug my Odoo modules.add this in the top of your class
import logging_logger = _logger = logging.getLogger(__name__)
then where you want values to be logged in the logging of Odoo you could use.
_logger.error(yourvariableormessagehere)
or
_logger.warning(yourvariableormessagehere)
Using the standard Ubuntu terminal will make the error and warning messages pop out because of it't color. I don't know about other OSs terminals to be honest.
You can do using python plugin with visual studio code. You can set break point as you want. It is as similar as debugging java in eclipse.
Detailed Information here:https://code.visualstudio.com/docs/python/debugging
Another similar way is winpdb (https://pypi.org/project/winpdb-reborn/) but it needs a line in your source code similar to eclipse+pydev.