Page MenuHomePhabricator

On-page debug log is empty
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Clone MediaWiki master
  • Install MediaWiki with some skin (e.g. Vector)
  • Add $wgShowDebug = true; in LocalSettings.php

What happens?:

On each page, there is Debug data: and no debug log after.

What should have happened instead?:

On each page, there should be Debug data: and a long debug log after.

Software version (skip for WMF-hosted wikis like Wikipedia):

MediaWiki 1.40-alpha 6b7f2747714

Other information (browser name/version, screenshots, etc.):

Example of the bottom of the page: there is only the title "Debug log":

image.png (946×93 px, 21 KB)

Example of the bottom of the page when this bug is fixed: there is the title "Debug log" and the beginning of the debug log:

image.png (946×285 px, 68 KB)

Details

Event Timeline

This bug is with the default LegacySpi, there is also T114532 with MonologSpi.

I submit the patch in a couple of minutes.

Change 892359 had a related patch set uploaded (by Seb35; author: Seb35):

[mediawiki/core@master] Display debug log when $wgShowDebug = true

https://gerrit.wikimedia.org/r/892359

Seb35 renamed this task from On-page debug log is emtpy to On-page debug log is empty.Feb 27 2023, 8:41 AM
Seb35 updated the task description. (Show Details)

Change 892359 merged by jenkins-bot:

[mediawiki/core@master] Debugger: Display debug log when $wgShowDebug = true

https://gerrit.wikimedia.org/r/892359

matmarex assigned this task to Seb35.
matmarex subscribed.