Debugging & Logging - Debugging Settings

Master control panel for ColdFusion debugging features and security

Overview

This page covers the ColdFusion debugging settings. In the Administrator they are split across the Debug Output Settings page (debugging output, robust exception information, performance monitoring, CFSTAT), the Debugging IP Addresses page, and the Debugger Settings page (line debugging). Adobe advises that you do not enable debugging on a production server because it affects performance (source: Use the ColdFusion administrator).

Proper configuration of debugging settings is critical for both development productivity and production security. While debugging tools are invaluable during development, they must be carefully controlled in production environments to prevent information disclosure, maintain performance, and comply with security requirements.

Master Debug Controls

Global settings that enable or disable all debugging features across the ColdFusion server.

Enable Request Debugging Output

PurposeEnables the ColdFusion debugging service
When EnabledDebugging output appears in block format after normal page output, for addresses on the Debugging IP Addresses list
Information ShownExecution times, database queries, variable scopes, exceptions, template execution paths
DevelopmentEnable for maximum visibility into application behavior
ProductionDisable to prevent information disclosure and performance impact
Critical Security Warning: Leaving debug output enabled in production can expose database structure, file paths, variable contents, API keys, session data, and internal application logic to potential attackers. This is a serious security vulnerability and compliance violation.
Best Practice: Use IP address filtering if you must enable debugging in production for troubleshooting. Limit to single admin IP, enable only specific debug categories needed, and disable immediately after resolving the issue.

Enable Robust Exception Information

PurposeDisplay detailed error information when unhandled exceptions occur
Information ShownPhysical path and URI of the template, line number and snippet, SQL statement and data source name (if any), and the Java stack trace
DevelopmentEssential - always enable for detailed error debugging
ProductionMUST be disabled without exception
Security ImpactHIGH - Exposes internal application structure and sensitive data
Production Security: This setting should NEVER be enabled in production environments. It reveals file system paths, database details, internal logic, and potentially sensitive data. Use custom error pages and server-side logging instead.
Compliance Impact:
  • PCI DSS: Robust exceptions can expose cardholder data and conflict with secure coding requirements (PCI DSS v4.0.1 Requirement 6.2.4, which replaced the v3.2.1 6.5.x list)
  • HIPAA: May expose PHI in error details - breach of privacy rules
  • GDPR: Can expose personal data - violation of data protection requirements
  • SOC 2: Fails security controls for information disclosure

Enable Performance Monitoring

PurposeEnables the standard NT Performance Monitor application to display information about a running server (server configuration only)
RestartRestart ColdFusion after changing this setting; cfstat also requires it
DevelopmentEnable to identify performance bottlenecks early
ProductionDisable or use professional APM tools (FusionReactor, New Relic)
Performance ImpactAdobe does not quantify it; measure on your own server
Production Alternative: Use dedicated Application Performance Monitoring (APM) tools like FusionReactor or SeeFusion for production performance monitoring without security risks.

Enable CFSTAT

PurposeShows performance information on platforms that do not support the NT Performance Monitor, through the cfstat command-line utility (server configuration only)
Information ProvidedPage hits and database accesses per second, queued, running, and timed-out requests, average queue, request, and database times, and bytes in and out per second
Access MethodCommand-line tool: cfstat in cf_root/bin (requires server access)
Production UseRead-only statistics, but Secure Profile disables CFSTAT; enable it only if you need it
Performance ImpactRestart ColdFusion after changing this setting
Use Case: Helpful for real-time monitoring during performance testing or troubleshooting. Requires SSH/RDP access to server, so no public exposure risk.

Debug Output Template

Control which debugging information is displayed and how it's formatted.

Select Debugging Output Format

PurposeChoose the template that formats debug output display
Available Optionsclassic.cfm (the format from ColdFusion 5 and earlier, with few browser restrictions) or dockable.cfm (a dockable tree-based debugging panel)
Recommendationdockable.cfm - Modern UI with better developer experience
Dockable Template Benefits:
  • Tree-based panel that can be docked
  • Browser restrictions are described in the Administrator online Help

Report Execution Times

PurposeReports execution times that exceed a specified time limit
Information ShownTemplates whose execution time exceeds the limit you set
Use CaseIdentify slow templates and includes, find performance bottlenecks
RecommendationEnable in development for performance awareness
Performance Optimization: Use this to identify templates that take disproportionate time. Look for slow includes, excessive nested templates, or templates processing large datasets.

IP Address Restrictions

Limit debugging output to specific IP addresses for security in production-like environments.

Debugging IP Addresses

PurposeRestrict debug output visibility to specific IP addresses
FormatIndividual IP addresses, added one at a time (Add Current adds your own address); the default entries are 127.0.0.1 and the IPv6 loopback addresses 0:0:0:0:0:0:0:1 and ::1 (neo-debug.xml iplist in the ColdFusion 2025 Update 14 Docker image)
ExamplesSingle IP: 192.168.1.100
Wildcard and CIDR entries are not documented for this list; add each address separately
Default BehaviorEmpty list = show debug to ALL users (dangerous in production)
Security Critical: If debug output is enabled and IP list is empty, ALL users see debugging information. Always configure IP restrictions if debugging is enabled in staging or production environments.
Best Practices:
  • Always include 127.0.0.1 for localhost access
  • Use as few specific IPs as possible in production
  • Consider VPN IP addresses for remote developers
  • Test from both allowed and denied IPs to verify filtering
  • Document why each IP is whitelisted
  • Review and update list regularly (remove departed staff)

Managing IP Address List

ConfigurationManaged on Debugging & Logging > Debugging IP Addresses
ScopeServer-wide setting (applies to all applications)
Load BalancersConfirm which address ColdFusion sees for your requests behind a proxy
Load Balancer Configuration: Adobe does not document how this check treats forwarded headers. Behind a load balancer or reverse proxy, test which address ColdFusion matches. Listing a shared proxy address exposes debug output to every client that comes through it.

Line Debugger Settings

Configure the line-by-line debugger for step-through debugging in compatible IDEs.

Allow Line Debugging

PurposeEnables the ColdFusion Debugger for step-through debugging. Specify the debugger port in the JVM settings as well. Restart ColdFusion for changes on this page to take effect.
Compatible IDEsAdobe's Administrator documentation describes the ColdFusion Debugger that runs in Eclipse (ColdFusion Builder reached end of life on October 1, 2024)
CapabilitiesSet breakpoints, step through code line-by-line, inspect variables at runtime, evaluate expressions
DevelopmentEnable for advanced debugging when needed
ProductionMUST be disabled - security risk and performance impact
Performance ImpactRequests pause at breakpoints while a session is active
Security Warning: Line debugger enabled in production allows remote code inspection and could potentially be exploited. Always disable in production environments. Consider security risks even in development if server is network-accessible.

Debugger Port

PurposeNetwork port for IDE to connect to ColdFusion debugger
RequirementsPort must be accessible from IDE to ColdFusion server
FirewallMay need to open port in firewall for remote debugging
Security Consideration: Only allow debugger port access from trusted developer workstations. Use firewall rules to restrict access. Never expose debugger port to public internet.

Maximum Simultaneous Debugging Sessions

PurposeLimit number of concurrent IDE debugger connections
RecommendationSet to number of developers who need simultaneous debugging
ImpactClick Stop Debugging to end a running session

Debug Output Details Configuration

Fine-tune which specific debugging information categories are displayed.

Database Activity

Information
SQL Query and Stored Procedure events
Development
Essential for query optimization
Production
Never enable - major security risk

Shows all SQL queries with parameters and timing. Critical for identifying N+1 queries and slow database operations.

Exception Information

Information
All ColdFusion exceptions raised for the request
Development
Helpful for tracking handled errors
Production
Disable to prevent information leakage

Displays exceptions even when caught by try/catch. Helps identify swallowed errors and exception handling issues.

Tracing Information

Information
cftrace output and timing between points
Development
Useful for tracking execution flow
Production
Disable unless using IP filtering

Shows developer-added trace points for debugging complex logic and measuring performance between checkpoints.

Variable Scopes

Information
Parameters, URL parameters, cookies, sessions, and CGI variables
Development
Essential for verifying data structures
Production
CRITICAL - Never enable, exposes sensitive data

Most sensitive debug category. Can expose passwords, tokens, API keys, and personal data. Huge security risk.

General Debug Information

Information
ColdFusion version, template, timestamp, user locale, user agent, user IP, and host name
Development
Good for high-level performance monitoring
Production
Generally safe but unnecessary with APM tools

Shows overall request timing, template cache statistics, and memory usage. Less sensitive than other categories.

Template Execution

Information
Templates processed and their execution times
Development
Identify slow templates and includes
Production
Can reveal application structure

Template hierarchy with timing helps optimize include structure and identify bottleneck templates.

Environment-Specific Best Practices

Development Environment Settings

Recommended Configuration:
  • Enable Request Debugging Output: Yes
  • Enable Robust Exception Information: Yes
  • Enable Performance Monitoring: Yes
  • Debug Output Format: dockable.cfm
  • Database Activity: Yes
  • Exception Information: Yes
  • Tracing Information: Yes
  • Variable Scopes: All scopes
  • General Debug Information: Yes
  • Report Execution Times: Yes
  • Allow Line Debugging: Yes (when needed)
  • IP Filtering: Not required for local development

Staging/QA Environment Settings

Recommended Configuration:
  • Enable Request Debugging Output: Yes with IP filtering
  • Enable Robust Exception Information: No (test production behavior)
  • Enable Performance Monitoring: Yes
  • Debug Output Format: dockable.cfm
  • Database Activity: Yes
  • Exception Information: Yes
  • Tracing Information: Yes
  • Variable Scopes: Limited (URL, Form only)
  • General Debug Information: Yes
  • Allow Line Debugging: No
  • IP Filtering: QA team IPs only

Production Environment Settings

Required Configuration:
  • Enable Request Debugging Output: NO
  • Enable Robust Exception Information: NO
  • Enable Performance Monitoring: NO
  • Database Activity: NO
  • Exception Information: NO
  • Tracing Information: NO
  • Variable Scopes: NONE
  • General Debug Information: NO
  • Allow Line Debugging: NO
  • Custom Error Pages: YES - Configure via Server Settings
  • Error Logging: YES - Log to files, never display

Emergency Production Debugging

If Absolutely Necessary (Extreme Caution):
  • Enable Request Debugging Output: Yes
  • Enable Robust Exception Information: NO (never)
  • Database Activity: Only if database issue
  • Exception Information: NO
  • Variable Scopes: NONE
  • General Debug Information: Yes (relatively safe)
  • IP Filtering: Single admin IP ONLY
  • Time Limit: Disable within hours, not days
  • Documentation: Log in change management system
  • Approval: Require manager approval

Security Considerations

Information Disclosure Risks

Debug Output Can Expose:
  • File System Paths: Reveals server directory structure and installation paths
  • Database Schema: Table names, column names, relationships visible in queries
  • SQL Queries: Complete queries with bound parameters may contain sensitive data
  • Credentials: Passwords, API keys, tokens in variable scopes
  • Session Data: User information, authentication tokens, shopping cart contents
  • Business Logic: Application flow, validation rules, security checks
  • Stack Traces: Code structure, library versions, potential vulnerabilities
  • Configuration: Datasource names, server settings, external service endpoints
  • Personal Data: Customer information, PII, PHI in variables or queries

Compliance Requirements

Regulatory Compliance:
  • PCI DSS: Debug output exposing cardholder data conflicts with secure coding requirements (PCI DSS v4.0.1 Requirement 6.2.4, which replaced the v3.2.1 6.5.x list). Must be disabled in production payment processing systems.
  • HIPAA: PHI exposure in debug output constitutes a breach. Requires Business Associate Agreement violations reporting.
  • GDPR: Personal data in debug output violates data protection requirements. May require breach notification to authorities and data subjects.
  • SOC 2: Uncontrolled debug output fails security controls for data confidentiality and availability.
  • ISO 27001: Information disclosure through debug output violates access control and information security policies.

Performance Impact Analysis

Development Environment

Impact
Adobe says debugging affects performance
Memory
Minimal - acceptable for single user
Verdict
Enable all features - benefits outweigh cost

Production Environment

Impact
Adobe advises against debugging on production servers
Memory
Significant - compounds under load
Verdict
NEVER enable - unacceptable cost

Line Debugger Active

Impact
Severe - request pauses at breakpoints
Concurrency
Blocked requests queue waiting for debugger
Verdict
Only use in isolated development

Common Issues & Solutions

Debug Output Not Appearing

Symptom: Debugging is enabled but no output shows on pages
Solutions:
  • Verify "Enable Request Debugging Output" is checked
  • Check your IP address is in allowed IP list (use whatismyip.com)
  • Verify you're not using VPN that changes your IP
  • Behind a load balancer, confirm which address ColdFusion sees for your requests
  • Check the end of the page: debug output appears after normal page output
  • Check for JavaScript errors that might hide dockable debug panel

Debug Output Shows to All Users

Symptom: Debug information visible to end users in production
Immediate Actions:
  • IMMEDIATELY disable "Enable Request Debugging Output"
  • Verify IP address filtering is configured with specific IPs
  • Check that IP list is not empty (empty = all users see debug)
  • Review server logs for potential data exposure
  • Assess if incident requires security breach notification
  • Document incident and implement prevention procedures
  • Consider implementing automated checks for debug settings

Line Debugger Won't Connect

Symptom: IDE cannot connect to ColdFusion debugger
Solutions:
  • Verify "Allow Line Debugging" is checked in the Administrator
  • Restart ColdFusion after enabling line debugger
  • Check firewall allows connections to the debugger port (default 5005)
  • Verify debugger port in IDE matches ColdFusion configuration
  • Confirm server hostname/IP is correct in IDE configuration
  • Check for port conflicts with other services
  • Review ColdFusion logs for debugger startup errors

Performance Degradation with Debugging

Symptom: Application significantly slower with debug output enabled
Solutions:
  • Disable variable scope display (especially Session/Application)
  • Disable Report Execution Times when you are not investigating slow templates
  • Disable database activity if not needed for current debugging
  • Enable only specific debug categories needed for current issue
  • Consider using cflog and cfdump output="file" instead

Alternative Debugging Approaches

File-Based Logging

Method
cflog, cfdump output="file"
Benefits
Safe for production, no user exposure
Use Case
Production debugging and audit trails

Write debugging information to log files accessible only to administrators. Production-safe alternative to debug output.

APM Tools

Tools
FusionReactor, SeeFusion, New Relic
Benefits
Production-safe, comprehensive metrics
Features
Real-time monitoring, alerting, profiling

Professional monitoring tools provide production-safe visibility without security risks of debug output.

Custom Debug Frameworks

Approach
Build application-specific debug panels
Benefits
Full control, custom authentication
Effort
Higher initial development time

Create custom debugging interfaces with your own security controls and exactly the information you need.

Deployment Checklist

Pre-Production Deployment Verification

Mandatory Checks Before Production Deployment:
  • Verify "Enable Request Debugging Output" is UNCHECKED
  • Verify "Enable Robust Exception Information" is UNCHECKED
  • Verify "Allow Line Debugging" is UNCHECKED
  • Confirm custom error page is configured for site-wide errors
  • Confirm missing template handler is configured
  • Test that errors show user-friendly messages (not stack traces)
  • Verify error logging is enabled and writing to files
  • Confirm log files are secured (not publicly accessible)
  • Document debug settings in deployment checklist
  • Consider automated tests to verify debug is disabled

Related Resources

Debugging & Logging - Debugging Settings | ColdFusion Administrator | CFGuide