How can I run Strapi in debug mode?

Not the answer to your question, but are you running your instance in a docker container by any chance. Since your loosing all your images on restarts ?