How to detect Debug mode in JavaScript?

Last post 02-13-2008 4:41 AM by Jin-Yu Yin - MSFT. 1 replies.

Sort Posts:

  • How to detect Debug mode in JavaScript?

    02-11-2008, 3:43 PM
    • Member
      259 point Member
    • MNF
    • Member since 07-25-2005, 12:15 AM
    • Posts 72

    AJAX ScriptManager Class  has a IsDebuggingEnabled property, that is available in server code. I want in my client Javascript function to determine, do I running debug or release mode.

    How can I do this?

  • Re: How to detect Debug mode in JavaScript?

    02-13-2008, 4:41 AM
    Answer

    Hi,

    Thank you for your post!

    You can create a hidden field to the page, then, check the IsDebuggingEnabled property of ScriptManager , if it is true, set the value of the hidden field to "true", else, false.

    Thank you!

    Sincerely,
    Jin-Yu Yin
    Microsoft Online Community Support
Page 1 of 1 (2 items)