30

PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 2: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 3: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 4: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 5: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 6: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 7: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• No Mixed Mode Debugging Support

• Use Multiple Instances Instead• Launch the app under the script debugger

• Attach with the native debugger from a second instance of VS

• Visual Studio naturally gives focus to the correct instance

• Cannot Debug JavaScript when stopped in the native debugger

Page 8: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Windows 8 contracts provide a new entry point for applications

• It’s not the same code as just launching under the debugger

• Simply attaching is not quick enough as you may have missed the code that you wanted to debug

Page 9: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 10: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Configure the app to debug without launch in the project properties

• F5 the app

• Invoke your application manually through the contract

Page 11: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• There are several reasons why you may not have a VS project, but still want to debug• Permissions

• Convenience

• Normally build/deploy outside of VS

• Attach to process is a pain for WWAs• Especially if you need to debug startup code!

Page 12: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 13: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Use the “Debug Installed App Package Feature”

• Works both local and remote

• Can automatically stop at the first line of JavaScript Code

Page 14: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Your app can register to run background tasks when certain events happen

• Some background tasks are straight forward to test and debug because you can trigger them manually

• Others can be a much bigger pain• Like a maintenance trigger that fires after 8 hours

Page 15: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 16: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Trigger background tasks from the Debug Location Toolbar

• Can trigger tasks on apps that are not running• Set them to debug without launching first

• Can trigger tasks that do not require a payload

Page 17: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 18: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Shows work being done by subsystems of Internet Explorer related to UI

• Helps to identify app startup performance and low frames per second caused by

• Being added in VS 2012 Update #2• First public availability in Update #2 CTP3

Page 19: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 20: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Instrumentation-based profiling

• Only shows JavaScript execution time

Page 21: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

• Inclusive time: The total amount of time from when the function was entered until the function exited

• Exclusive time: The amount of time spent executing code in just the function body

Page 22: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

Function Alpha()

{

}

Beta();

}

function Beta()

{

}

30 ms

50 ms

Alpha

Beta 50 50

30 80

Page 23: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 24: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 25: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 26: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

Object Size Retained Size

Object A 100 KB

Object B 500 KB

Object C 50 KB

Object D 100 KB

Page 27: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 28: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just

http://msdn.microsoft.com/en-us/library/windows/apps/hh781607.aspx

http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx

Page 29: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just
Page 30: PowerPoint Presentationdownload.microsoft.com/documents/hk/technet/techdays2013...•Windows 8 contracts provide a new entry point for applications •It’s not the same code as just