How can I run Strapi in debug mode?

System Information
  • Strapi Version: 4.6.0
  • Operating System: alpine docker
  • Database: mariadb
  • Node Version: 9
  • NPM Version: 18
  • Yarn Version:


I’m coming across a few situations where i’m struggling to understand how to do things and it’d be really useful to be able to drop in a debugger so i can reverse engineer what I need to do to fix.

For example, the Media Library is not currently saving files to my specified folder. It means when i restart the server, the images are lost.

I’d like to run with verbose logging enabled, and possibly with a debugger attached.

Do you have any docs / guidance on how to do this? I’m using the “strapi develop” command at the moment and I don’t see any options for enabling verbose logging.

Thanks in advance

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 ?