Launch weekSIGSHIP is on Product Hunt and LiftOff. 50% off every plan with code LAUNCH50 until Sunday 6 December (Solo monthly has its own founder offer): Pro is $74.50 and Business $249.50, paid once.Launch week: 50% off · LAUNCH50See plans →Plans →
  1. Home
  2. The 30 checks
  3. The debugger is on in a public server
🌐 Website safety · Fix now (SEV-1)

The debugger is on in a public server 

In plain English: Your server runs with its debugger switched on and listens on every network address. Flask's debugger, and Node's inspector, let whoever can reach them run their own code on your server, with access to every key it holds.

What happens if you ship it

The first error page hands a visitor a console that runs any code they type on your server, with every key it holds.

How to fix it technical

Turn the debugger off on any server others can reach: read the setting from the environment, for example debug=os.environ.get("FLASK_DEBUG") == "1", and leave it off in production. For Node, remove --inspect from the start command.

Let your AI tool fix it

Paste this into Lovable, Bolt, Cursor, Replit or Claude Code:

Prompt for your AI tool
Fix this problem in my project: The debugger is on in a public server. Turn the debugger off on any server others can reach: read the setting from the environment, for example debug=os.environ.get("FLASK_DEBUG") == "1", and leave it off in production. For Node, remove --inspect from the start command. Change only what this fix needs, then tell me what you changed and anything I have to do myself.

Check your app

Run npx sigship in your project folder. It reports this problem as debug-mode-public, along with 29 other checks. Nothing leaves your computer. New to the terminal?

Questions

Why is debug mode dangerous on a live server?

Flask's debug mode shows an interactive console on every error page. Anyone who triggers an error can type code into it, and it runs on your server.

How do I keep debugging on my own computer?

Read the setting from the environment, for example debug=os.environ.get("FLASK_DEBUG") == "1", set it only locally, and run the live app with a server such as gunicorn.

What does 0.0.0.0 mean?

Listen on every network address, so other machines can connect. Hosts like Replit and Docker need it, which is why debug mode there is open to the internet.

See every check · Jargon, explained