How to have useful errors in Xamarin - xamarin

I'm working on Xamarin and i have a real problem : i can't debug anything because when my application crash i never had informations about how and where.
The output log only send me useless messages like
Exception thrown at 0x0AE440F8 in MyApplication.exe: 0xC0000005: Access violation reading location 0x00000000.
How am I supposed to know what is the problem ? And it like this for everything. I just have this error and nothing else. Where are errors ? How can i know where and why it crash because i can't fix an issue if i don't know what is the problem...
Thank you for any help

Related

How do I debug a silent VB6 crash?

I am experiencing random crashes when I use my VB6 app in runtime mode.
I have read about Dr. Watson, but I don't even find it on the internt anymore.
What could I do to track down the bug?
Edit: I am pretty sure that the crash happens because I call
SomeArray(SomeIndex)
and SomeIndex is > UBound(SomeArray)
The reason it crashes silently seem to be that this error occurs within a subclassing procedure.
But I would like to know how I could have found out about it if I had not been able to pinpoint the error.
Thank you!

x32debug exception access violation

I am trying to open a file in a program called DavkaWriter. Most of the files generated from this program I can open. I am facing an issue with a certain file. The software just crashes. I opened DavkaWriter in x32_debugger. I am attaching a screenshot of what looks like the issue. I am running this software on Windows 10 64 bit. The exact error code is "First chance exception on 005004C2 (C0000005, EXCEPTION_ACCESS_VIOLATION)!" The picture is attached as a link. This may be an amateur question but I have never debugged before. Thank you for your help!
First chance exception on 005004C2 (C0000005, EXCEPTION_ACCESS_VIOLATION)!

Access Violation when debbuging windows phone 8.1 app

recently I encountered a problem. Every time when I make some changes in page after I debug it on device when going to said page the app minimizes (crashes) and after about 30-50 seconds in output window I get
The program 'XXX' has exited with code -1073741819 (0xc0000005) 'Access violation'.
But when I uninstall and then debug again It works. I already tied reseting phone. Is it something with my debbuger or more likely with my code?
Edit:
Right now sometimes it occurs and sometime it doesnt ... I'll need to inspect code more. Is there a way to obtain more debug info with Access violation information?
I'll post as answer so others can see it easily.
You can see the dump of debug on the test device, Follow this
link.
Basically the link explains how to turn on "Save Information option" from Feedback application inside Settings of your device. After that when you debug the app, you will find dump file of your application inside,Phone -> Documents ->Debug.
Please post a sample of your code. I had similar problems when I tried using {unsafe code} and included pointers. They are extremely useful, but often lead you to memory problems (reading from a NULL pointer or something like that), so check if that's your problem.
Good luck

Xcode 6.4 how to use exception breakpoint

I am fairly new to Xcode and I have a question regarding how to trace back a bad access exception.
When I run my program in Xcode 6.4, it crashes and says there is a bad access somewhere. I can look into it and see all the assembly codes. However, when I try to use exception breakpoint to trace where the bad access actually comes from in the source code, nothing happens.
I have no idea what is going on and it would be appreciated if someone can help.
"Bad access" has nothing to do with exceptions. It's a signal, not an exception. Your program stops exactly at the point of the bad memory access. Follow the stack trace up to identify the code calling it. More importantly, use the static analyzer to show you problems, and turn on warnings to show you even more problems.
(The reason why you should set an exception breakpoint is that exceptions - not signals - end up in the debugger when it is found that nobody is catching the exception, at which point lots of evidence is destroyed. Exception breakpoint stops right when the exception is thrown, so you can follow the stack trace as well).

Not able to see the process and stacktraces of crash in Samsung Galaxy s2

I am not able to debug my application on Samsung Galaxy S2. I got a new phone last week. I am trying to keep my application on this (Samsung Galaxy S2) phone. But I observe that, in DDMS phone is listed but my process is not getting listed. So, i am not able to attach the debugger to my process.
And also when my application is crashing ("Force Close") error, i am not able to see the stack traces in Logcat even if i create a new Throwable object and call printStackTrace(). But in my application if keep logs (Log.i(), Log.e()...) i am getting those logs in the Logcat.
Do i need to do anything for getting the stacktraces and debugging the phone?
Please let me know if anyone have faced similar problem.
Thanks & Regards,
SSuman185
I apologize for the inconvenience caused.
Actually in my app some one has kept this flag in the AndroidManifest.xml file
android:debuggable="false"
Due to which i was not able to debug. Now on changing it to true, i am able to debug. After a lot of lot of googling i came to know this.
Regards,
SSuman185

Resources