Languages

Menu
Sites
Language
How to detect where is crash

Hi all,

Please help me find the way to know where is crash in my code. I want to know exactly which line cause lead to crash. Thanks!

 

Responses

5 Replies
Shrikanth Theasarakt

It is should possible if you will add log in your app. Or use debug (gdb).

Alex Dem

Hi,
Please watch Window->Show View-> Call Stack. Usually there is enough info about crash after it has been occured. You will able to determine crashed method as minimum.
Alexey.

hgw7

There are debugging options in the SDK. Please refer -> https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fapp_dev_process%2Fdebugging_overview.htm

Also, you can check the log files and crash report which will give you an idea about where the crash occured.

The easy method is using AppLog before and after method call to find the method casuing the crash and then use AppLog inside that method to find the line casuing the crash.. this is simple old fashioned method if you wish

 

 

 

 

boon hero

Thanks all, but sometime you can't use debug to detect it. For example, when app run in loop, it will difficult to debug. In XCode, when i add exception then it will jump to line code that cause of crash. I think that is better. Anyway, thanks all again for your reply.