在Windows Phone“Step Over”当我用等待方式调用async方法调用时,从异步方法退出 [英] On Windows Phone "Step Over" exits from async method when I step over async method call with await

查看:168
本文介绍了在Windows Phone“Step Over”当我用等待方式调用async方法调用时,从异步方法退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试设备上的Windows Phone 8.1应用程序时,当我用等待方式调用异步方法调用时,逐步退出异步方法。
这不会发生在Windows 8.1或桌面应用程序,但在Windows Phone应用程序。



为什么会这样?

解决方案

此问题是由禁用的选项引起的抑制模块加载的JIT优化



在MSDN上的 JIT优化和调试中解释


While debugging Windows Phone 8.1 app on device, "Step Over" exits from async method when I step over async method call with await. This does not happen in Windows 8.1 or desktop apps but in Windows Phone apps.

Why does this happen?

解决方案

This problem was caused by disabled option Suppress JIT optimization on module load.

Explained in JIT Optimization and Debugging on MSDN

这篇关于在Windows Phone“Step Over”当我用等待方式调用async方法调用时,从异步方法退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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