Forums

Cant debug always on tasks.

I have setup an always on task. The task when manually run from the console works perfectly and also show the print statements. But the scripts doesnt work on always on task when running automatically from task page. It is the same code, still doesnt work in tasks. Also the logs for always on task are sometimes weird. It doesnt show print statements and sometimes it show. How should I debug the task?

Take a look at https://help.pythonanywhere.com/pages/AlwaysOnTasks/#debugging-always-on-tasks