docker-ckan icon indicating copy to clipboard operation
docker-ckan copied to clipboard

Debugging 2.9 with debugpy does not work with reloader

Open GordianDziwis opened this issue 2 years ago • 1 comments

I added to the development container startup script ckan-dev/2.9/setup/start_ckan_development.sh, the following line for debugging:

sudo -u ckan -EH python3 -m debugpy --listen 0.0.0.0:5678 /usr/bin/ckan -c $CKAN_INI run -H 0.0.0.0

But this produces this error:

/usr/bin/python3: No module named ckan.__main__; 'ckan' is a package and cannot be directly executed

Disabling the reloader with -r helps.

GordianDziwis avatar Oct 13 '21 11:10 GordianDziwis

I don't have experience with this tool so I can't help but maybe these discussions can point you in the right direction:

https://github.com/ckan/ckan/discussions/6457 https://github.com/ckan/ckan/pull/6458

amercader avatar Oct 13 '21 12:10 amercader