• 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
• 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
• Configure the app to debug without launch in the project properties
• F5 the app
• Invoke your application manually through the contract
• 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!
• Use the “Debug Installed App Package Feature”
• Works both local and remote
• Can automatically stop at the first line of JavaScript Code
• 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
• 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
• 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
• Instrumentation-based profiling
• Only shows JavaScript execution time
• 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
Function Alpha()
{
}
Beta();
}
function Beta()
{
}
30 ms
50 ms
Alpha
Beta 50 50
30 80
Object Size Retained Size
Object A 100 KB
Object B 500 KB
Object C 50 KB
Object D 100 KB
http://msdn.microsoft.com/en-us/library/windows/apps/hh781607.aspx
http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx