locked
Debugging tips for Metro apps

    General discussion

  • Hello guys.

    How are you guys debugging features which depend on specific panels being shown? For instance, printing? I mean, I've managed to get what I wanted by using the console.log, but is there any other way to debug these  things? Any other tricks you're using?

    thanks.


    Luis Abreu

    Tuesday, May 29, 2012 10:21 AM

All replies

  • Changing to discussion...

    For me logging has been most effective.  As you know when a panel is up and you break into the debugger it will close it. 


    Jeff Sanders (MSFT)

    Tuesday, May 29, 2012 1:32 PM
    Moderator
  • yes, that's what I've been doing...but logging is not as good as having all the time in the world to look at everything in the debugger, right?

    anyways, just thought about asking because there might be some handy trick which I don't know of...


    Luis Abreu

    Tuesday, May 29, 2012 8:54 PM
  • I would assume there are still conditional breakpoints you could use? Such condition I guess could contain javascript code? Never tried it though.
    Wednesday, May 30, 2012 3:24 PM
  • The problem with that is that the app looses focus and then the panel gets hidden...

    Luis Abreu

    Thursday, May 31, 2012 12:32 PM
  • Hey Luis!

    My buddy Rob Caplan just had a wonderful idea for this situation.  You could use remote debugging or even the simulator for debugging and avoid the focus change issues associated with debugging on the same machine.  I believe either of these techniques would work in this situation.

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, May 31, 2012 4:02 PM
    Moderator
  • Hello again Jeff.

    I'll give it a try (didn't think about it before because I'm currently using 2 monitors and that didn't help in this situation).

    thanks.


    Luis Abreu

    Monday, June 04, 2012 12:44 PM
  • The emulator works great for such debugging, but is has other bugs (live tile updates not working).
    Monday, June 04, 2012 1:46 PM