在 Windows Phone 7 中测试连接问题(使用模拟器) [英] Testing connectivity issues in Windows Phone 7 (using the emulator)

查看:20
本文介绍了在 Windows Phone 7 中测试连接问题(使用模拟器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows Phone 7 模拟器中是否有办法关闭网络连接(无需拔掉电缆并关闭笔记本电脑上的 Wi-Fi)?我想在没有物理设备或在模拟器或 Windows Phone 7 SDK/工具之外执行任何物理操作的情况下测试网络连接的中断.

Is there a way in the Windows Phone 7 emulator to turn off the network connection (without yanking the cable and turning wi-fi off on my laptop)? I want to test the dropping of network connectivity without having a physical device or doing anything physical outside the emulator or the Windows Phone 7 SDK/Tools.

推荐答案

作为物理禁用网络连接的替代方法,有时我还发现通过 Fiddler2.然后就可以使用断点来拦截一些连接.然后,您可以使用它在服务器响应之前添加延迟.或者您可以强制超时.
当您想测试某些连接失败而不是其他连接时,我发现这是一种有用的方法.

As an alternative to physically disabling the network connection I also, sometimes, find it useful to redirect the network connections through Fiddler2. It's then possible to use breakpoints to intercept some connections. You can then use this add a delay before the server can respond. Or you can force a timeout.
I find this a useful approach when you want to test some connections failing but not others.

这篇关于在 Windows Phone 7 中测试连接问题(使用模拟器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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