locked
is there a better method than console.log ? It only shows string instead of objects

    Question

  • is there a better method than console.log ?  I was hoping it would be objects where i can click then it shows me the properties and the value of the properties instead of just string.

    I was hoping for a console.log like google chrome instead of firefox.

    Monday, June 18, 2012 2:40 PM

Answers

  • Yes,

    A much better method is to use the debug windows.

    There are three that I find very useful:

    Watch

    Locals

    Autos

    You can get to these while you are running under the debugger from the DEBUG, Windows menuitem

    -Jeff


    Jeff Sanders (MSFT)

    Monday, June 18, 2012 2:47 PM
    Moderator

All replies

  • Yes,

    A much better method is to use the debug windows.

    There are three that I find very useful:

    Watch

    Locals

    Autos

    You can get to these while you are running under the debugger from the DEBUG, Windows menuitem

    -Jeff


    Jeff Sanders (MSFT)

    Monday, June 18, 2012 2:47 PM
    Moderator
  • ow right right. Thanks.
    Monday, June 18, 2012 2:52 PM
  • console.dir() will show the actual object data
    Thursday, May 02, 2013 5:49 PM
  • The 'Indemiate Window' and the 'Javascript Console' are also great tools

    http://about.me/sebagomez

    Thursday, May 02, 2013 6:52 PM