locked
#DBG Version of WinJS Scripts

    Question

  • Hi all,

    I notice that the WinJS scripts contain #DBG directives which include extra debugging code. For example:


            /*#DBG
            VERIFYLIST();
            VERIFYREFRESHLIST();
            #DBG*/

    How do I take advantage of this?  Are there debug versions of base.js and ui.js or do I need to strip all of the #DBG comments by hand?

      -- Stephen

    Saturday, July 14, 2012 2:59 PM

Answers

  • Stephen,

    They are not directives, they are commented code blocks!

    Uncomment them but make sure you put them back or your app will perform very poorly.

    -Jeff


    Jeff Sanders (MSFT)

    Wednesday, July 18, 2012 8:09 PM
    Moderator

All replies

  • Hi Stephen

    Can you tell us why you want to delete this comments?

    My understanding you can treate this file like a official class library, needn't to modify it.

    Tuesday, July 17, 2012 2:33 AM
  • Hi Dino,

    I want to take advantage of the extra debugging information. I assume that methods like VERIFYLIST() and VERIFYREFRESHLIST() will provide extra error information in case bad values are passed to WinJS methods.  How do I take advantage of these #DBG methods? Are there debug versions of the standard WinJS scripts?

      -- Stephen

       

    Tuesday, July 17, 2012 2:36 AM
  • Stephen,

    They are not directives, they are commented code blocks!

    Uncomment them but make sure you put them back or your app will perform very poorly.

    -Jeff


    Jeff Sanders (MSFT)

    Wednesday, July 18, 2012 8:09 PM
    Moderator