如何在Native / XAML解决方案的WinRT组件中设置断点。 [英] How to set breakpoints in a WinRT component of Native/XAML solution.

查看:54
本文介绍了如何在Native / XAML解决方案的WinRT组件中设置断点。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序基于Hybrid Marble Maze代码,这是一个带有WinRT组件项目的XAML应用程序。 我的大部分游戏代码都是从C ++端运行的,但我无法在WinRT项目中获得断点。

I'm basing my app off the Hybrid Marble Maze code which is a XAML app with a WinRT component project.  The bulk of my game code runs from the C++ side but I can't get breakpoints to catch in the WinRT project.

当我设置它们并运行应用程序时,红色圆圈变成空心的我假设的圆圈意味着没有加载符号。我发现了对设置"启用非托管代码调试"的引用。从调试选项卡下的解决方案属性。不幸的是,
此选项在VS 2012中不存在。 

When I set them and run the app, the red circles become hollow circles which I assume means the symbols aren't loaded. I've found reference to setting "enable unmanaged code debugging" from the solution properties under the debug tab. Unfortunately, this option is not there in VS 2012. 

UI任务有选项 - >仅限原生和代理任务 - >只有native,但是从托管设置为native时会导致应用程序加载时出现第一次机会异常。

There are options for UI Task -> native only and Agent Task -> native only but setting them to native from managed causes a first chance exception when the app loads.

你应该如何在WinRt组件中调试代码?

How are you supposed to debug code in a WinRt component?

阿凡达空战 - 僵尸土耳其爆发 - RC飞机挑战 - 阿凡达激光标签

Avatar Air Wars - Zombie Turkey Outbreak - RC Airplane Challenge - Avatar Laser Tag

推荐答案

您好@Reggie,请按照以下步骤操作:

Hi @Reggie, follow these steps:


  1. 清理项目。
  2. 添加断点。
  3. 确保您的项目处于调试模式。
  4. 构建解决方案

希望有所帮助。请告诉我。

Hope it helps. Let me know.

问候。


这篇关于如何在Native / XAML解决方案的WinRT组件中设置断点。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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