Skip to content

Debug mode switched on in code

Partialmedium severity · reads .ts .tsx .js .jsx .mjs .cjs .pyBeta

Debug pages can show stack traces, settings and secrets. Marked Partial: it may only run locally. When Lintsure finds this, it marks it as Partial: it may be fine, depending on context only you can confirm.

What it looks like

A line Lintsure flags in its own test app:

// src/settings.py
DEBUG = True

How to fix it

Read debug from an environment variable that is off in production.

Through a coding agent, Lintsure suggests the change and waits. Nothing is edited until you approve it.

Controls it relates to

What the framework asks

SOC 2 CC8.1: Change management

Changes are reviewed, tested and approved before they reach production.

Evidence a reviewer may ask for: Pull request reviews and deploy records.

ISO 27001 A.8.9: Configuration management

Systems are set up securely and settings are controlled.

Evidence a reviewer may ask for: Baseline configurations.

Summaries are our own reading of the public texts, not the official wording.

Read more: Which SOC 2 controls you can check in code

Check your code for this

Runs on your machine. Your code is never uploaded.

npx lintsure scan

Quickstart · Use it in Claude Code or Cursor

This rule is in Beta: its mapping to framework controls is waiting for review by a qualified compliance professional. Lintsure is a readiness tool, not an audit or legal advice. A finding, or the lack of one, doesn't make you compliant. Disclaimer

Related rules