Sunday, July 20, 2008

[2] Secrets behind debug=1

Ever tried appending &debug=1 to Clarity URL in Web browser's address bar.. If not yet done, just try and see what it brings for you ...

Like appending it to Project Listing URL you see something like below (Click image to Enlarge) :-




This is for 8.1 while 7.5.x output will not be that elaborative. Using debug=1 option you can see XML version of that Clarity page. In 8.1 you will also see list of Rights user have for that object/portlet. Like you can know whether user has "Create Project" rights or not, what are the hidden values in the page that you don't see on the screen...

You will also find internal id's of portlets, objects etc which you may like to query in database... similarily there are many more pieces of information that you can use to troubleshoot technical issues.


* I sometimes use it for XML level debugging/research activity. Like which queries are being fired, which XML or Java modules are called by any particular action or while displaying a page. Here in this debug page we can get some unique keywords and search it in META-INF or Webroot folder files. This sometimes helps in reaching to page/module which is controlling Clarity action/page. From there you can dig into XML/XBL/XSL files and get the logic there..

4 comments:

  1. This is an awesome tip! Great for as you mentioned tracing the Clarity object in the database. Great blog!

    ReplyDelete
  2. Hello Sangeet,

    Would you like to share some more, like debug.data

    With regards


    Martti K.

    ReplyDelete
  3. try

    &debug.data=true

    (even more interesting :-)

    ReplyDelete