使用Android的Xamarin异常时 [英] Exceptions when using Xamarin Android
问题描述
我最近开始使用Android的Xamarin学习移动开发。我使用VS 2012年我注意到,当我打开一个Android项目的调试下的所有例外 - >例外是听之任之。我以为这是在code抛出的异常不能在某种程度上显示出它我从桌面开发使用的原因。当我检查了调试 - >例外窗口中的例外情况,并试图解决方案部署到失败模拟器 - 没有错误,但应用程序不能在模拟器启动
所以我的问题是:是不是使用VS 2012和VS 2010和模拟器为Android开发时正常的行为?有没有办法看到的不只是在输出窗口中的正常方式抛出异常。想如果我用一个实际的Android设备进行调试这一变化?
在此先感谢。
乌罗什
也许我还不够清楚。在Visual Studio中的code执行不破发,但用于探索编程桌面的时候,我得到的异常标准窗口instad,该窗口包含抛出的异常只有名称,一个复选框来禁用$ C $当这种类型的异常被抛出ç打破和突破,继续和忽略按钮。但是编程用于台式机的时候,我不能探索提供一种实际的异常。
块引用>在
调试 - >例外
对话框中,如果您单击公共语言运行库异常的
你会得到异常的一个更有意义的描述待解决。时抛出
复选框
显然,另一件大事是点击中断按钮,看到什么是调用堆栈上。
I recently started to learn mobile development using Xamarin Android. I am using VS 2012. I noticed that when I open an android project that all exceptions under Debug -> Exceptions are unchecked. I thought that is the reason that exceptions thrown in code are not shown in a way to which I am used to from desktop development. When I checked the exceptions in Debug->Exceptions window and tried to deploy the solution to the emulator it failed - there were no errors but the application does not start on the emulator.
So my question is: Is that normal behavior when developing for Android using VS 2012 or VS 2010 and the emulator? Is there any way to see the thrown exceptions in a 'normal way' not just in output window. Would that change if I used an actual Android device for debugging?
Thanks in advance. Uroš
解决方案Maybe I wasn't clear enough. The code execution in visual studio does break, but instad of a standard window used to explore the exception which I get when programming for desktop, the window contains only the name of the thrown exception, a checkbox to disable the code break when this type of exception is thrown and Break, Continue and Ignore buttons. But I can not explore the actual exception in a way available when programming for desktop.
In the
Debug --> Exceptions
dialog box, if you click theThrown
checkbox forCommon Language Runtime Exceptions
you will get a more meaningful description of the exception to be resolved.Obviously the other big thing is clicking the Break button and seeing what is on the call stack.
这篇关于使用Android的Xamarin异常时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!