Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-12418

allow users to specify more output modes for debug

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.0.0
    • Misc
    • None

    Description

      It would be nice to

      • give user more formatting possibilities beside plain text and html for debug info
      • not to presume that index.php will display debug in html mode if "inline" or "popup" is selected in ini file
      • allow user to specify a filter to be run on debug output before it is echoed into the results. This way user can echo the debug info inside a javascript or xml comment without fear of it breaking outside of the comment

      proposed solution ==>

      • in index.php, let eZDisplayDebug() use a new ini var to decide format of debug output, eg DebugFormat. defaults to 'html'. This is orthogonal to inline/popup
      • pass the said format as param to ezdebug::printreport and ezdebug::printreportinternal instead of the $as_html param (use polimorphism magic to keep api backwards compatible, translating true => format = "html" and false => format = "text"
      • add a filtering mechanism on debug output based on a new ini setting (as a new function of ezdebug)

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: