Metro应用程序中的__debugbreak() [英] __debugbreak() in Metro apps

查看:89
本文介绍了Metro应用程序中的__debugbreak()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过文件关联启动Metro应用程序来调试问题,但__debugbreak()似乎无法生效。如何在启动时进入执行状态,以便跟踪出现的问题?

I'm trying to debug a problem with launching a Metro app via a file association, but __debugbreak() seems to have no effect. How can I break into execution at startup so I can trace what's going wrong?

推荐答案

在Visual Studio项目属性中,您可以设置应用程序开始运行时附加的调试选项,而不是启动应用程序。

In the Visual Studio Project Properties you can set the Debug options to attach when the app starts running rather than to launch the application.

- Rob


这篇关于Metro应用程序中的__debugbreak()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆