https://bugzilla.wikimedia.org/show_bug.cgi?id=35061

       Web browser: ---
             Bug #: 35061
           Summary: Unable to use debug mode when previewing a user script
           Product: MediaWiki
           Version: 1.19
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Resource Loader
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: mybugs.m...@gmail.com
                CC: krinklem...@gmail.com, roan.katt...@gmail.com,
                    tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---


It removes the debug=1 from URL.

Compare the result of typing
----
alert(mw.log);
----

on each of
1) https://en.wikipedia.org/wiki/User:YourUserName/common.js?action=edit
2)
https://en.wikipedia.org/wiki/User:YourUserName/common.js?action=edit&debug=1
and clicking on preview after that. The result will be the same in both cases:
----
function (){}
----

In (2), the message should display the code which appears if you type
"alert(mw.log);" in your browser's console, when in debug mode, not the dummy
function which is used on "production mode".

This makes it harder to debug some scripts.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to