Skip to content

Add WP_DEBUG_LOG and WP_DEBUG_DISPLAY toggles#2553

Draft
bcotrim wants to merge 1 commit intotrunkfrom
add/enable-debug-log
Draft

Add WP_DEBUG_LOG and WP_DEBUG_DISPLAY toggles#2553
bcotrim wants to merge 1 commit intotrunkfrom
add/enable-debug-log

Conversation

@bcotrim
Copy link
Contributor

@bcotrim bcotrim commented Feb 8, 2026

Related issues

Fixes #23

Proposed Changes

  • Add WP_DEBUG_LOG and WP_DEBUG_DISPLAY toggles in a new "Developer" tab within the Edit Site modal
  • Xdebug control moved to Developer tab alongside new debug toggles
  • WP_DEBUG automatically enabled when either WP_DEBUG_LOG or WP_DEBUG_DISPLAY is toggled on
  • Developer settings grouped in read-only Settings view
  • Full CLI support: studio site set --debug-log --debug-display with --no- variants
  • Server restart triggered when debug settings change

Testing Instructions

  1. Open WordPress Studio and select a site
  2. Click "Edit site" → Developer tab
  3. Toggle "Enable debug log" and "Show errors in browser"
  4. Save and verify the site restarts
  5. Check that wp-content/debug.log is created
  6. Via CLI: studio site set --path /path/to/site --debug-log --debug-display

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

Add toggles for enabling WP_DEBUG_LOG and WP_DEBUG_DISPLAY in Site Settings.
- New Developer tab in Edit Site modal with Xdebug, debug log, and debug display toggles
- Grouped controls update appdata, trigger server restart, and inject Blueprint constants
- WP_DEBUG auto-enabled when either debug setting is on
- Full CLI support via 'studio site set --debug-log --debug-display'
@bcotrim bcotrim self-assigned this Feb 8, 2026
@bcotrim bcotrim marked this pull request as draft February 8, 2026 12:14
@wpmobilebot
Copy link

📊 Performance Test Results

Comparing 6f9d087 vs trunk

site-editor

Metric trunk 6f9d087 Diff Change
load 2744.00 ms 2771.00 ms +27.00 ms 🔴 1.0%

site-startup

Metric trunk 6f9d087 Diff Change
siteCreation 7071.00 ms 7084.00 ms +13.00 ms 🔴 0.2%
siteStartup 3922.00 ms 3927.00 ms +5.00 ms 🔴 0.1%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: one click to enable debug.log

2 participants