MediaWiki/js: Difference between revisions

No edit summary
mNo edit summary
Line 5: Line 5:


== Debugging JavaScript ==
== Debugging JavaScript ==
# Access the developer tools of your browser  
<ol>
** Chrome  <code>CTRL + SHIFT + J</code>  
<li> Access the developer tools of your browser  
** Firefox <code>CTRL + SHIFT + I</code>
<ul>
# Go to the console tab (look for errors)
<li>Chrome  <code>CTRL + SHIFT + J</code>  
# append <code>?debug=true</code> to the URL and reload the page.  This will give you non-minified JavaScript.
<li>Firefox <code>CTRL + SHIFT + I</code>
</ul>
<li>Go to the console tab (look for errors)
<li>append <code>?debug=true</code> to the URL and reload the page.  This will give you non-minified JavaScript.
</ol>