如何在调试Window App时,触发 Suspending ,Resuming 等事件

Visual Studio prevents Windows from suspending an app that is attached to the debugger. This is to allow the user to view the Visual Studio debug UI while the app is running.windows

刚开始接触Win10应用开发的同窗,会碰到一个这样的问题:在使用Visual Studio调试UWP应用时,咱们应该如何主动触发 Suspending 等事件 ? 文章开头一段引用文字,你们也许都明白了,那咱们如何主动触发Suspending等事件呢?app

咱们能够经过Visual Studio的调试工具,向应用发送一个Suspending或者Resuming等事件消息,咱们就能够调试事件处理函数里的代码了。函数

suspending

若是 Visual Studio 默认没有显示此工具,参考下图:工具

debuglocation

参考连接:https://msdn.microsoft.com/zh-cn/library/windows/apps/hh974425(v=vs.120).aspxdebug

谢谢。调试

相关文章
相关标签/搜索