sample of debug

This commit is contained in:
Yhael S
2023-04-20 19:48:58 -05:00
parent f762585ba1
commit 406a6ceb1f
4 changed files with 15 additions and 0 deletions

View File

@@ -30,6 +30,13 @@ case "$1" in
exec odoo --config ${ODOO_RC} --database=${DB_NAME} --update=${UPDATE} --init=${INIT} --load=${SERVER_WIDE_MODULES} --dev=${DEV_MODE}
fi
if [ ${APP_ENV} = 'debug' ] ; then
# Automagically update the addons you are currently working on.
echo /usr/bin/python3 -m debugpy --listen 0.0.0.0:8071 /usr/bin/odoo --config ${ODOO_RC} --database= --update= --init= --load= --dev=
exec /usr/bin/python3 -m debugpy --listen 0.0.0.0:8071 /usr/bin/odoo --config ${ODOO_RC} --database=${DB_NAME} --update=${UPDATE} --init=${INIT} --load=${SERVER_WIDE_MODULES} --dev=${DEV_MODE}
fi
if [ ${APP_ENV} = 'testing' ] ; then
# Work in progres... (DO NOT USE)
echo odoo --config ${ODOO_RC} --database=test_${DB_NAME} --db-filter=test_${DB_NAME} --test-enable --test-commit --log-handler=:DEBUG --log-level=debug --workers=0 --init= --update=