stack-trace

StackTrace in Flash / ActionScript 3.0

醉酒当歌 提交于 2019-12-17 06:13:01
问题 I want to see the stack trace in any function of my code, so i made somthing like this to call it and print the stack trace: public function PrintStackTrace() { try { throw new Error('StackTrace'); } catch (e:Error) { trace(e.getStackTrace()); } } I like to know if there are other way to do this. In some place, the Error class creates the stack trace, but maybe it didn't do it with ActionScript 3.0 so maybe it's not posible, but i want to know. Thanks! 回答1: As far as I know, the only way to

Determining Current Call Stack (For Diagnostic Purposes)

心已入冬 提交于 2019-12-17 04:58:51
问题 For diagnostic purposes I sometimes need to store the call stack that lead to a given state transition (such as granting a lock, committing a transaction, etc.) so that when something goes wrong later I can find out who originally triggered the state transition. Currently, the only way I am aware of to retrieve the call stack looks like the following code snippet, which I consider terribly ugly: StackTraceElement[] cause; try { throw new Exception(); } catch (Exception e) { cause = e

Determining Current Call Stack (For Diagnostic Purposes)

浪尽此生 提交于 2019-12-17 04:58:45
问题 For diagnostic purposes I sometimes need to store the call stack that lead to a given state transition (such as granting a lock, committing a transaction, etc.) so that when something goes wrong later I can find out who originally triggered the state transition. Currently, the only way I am aware of to retrieve the call stack looks like the following code snippet, which I consider terribly ugly: StackTraceElement[] cause; try { throw new Exception(); } catch (Exception e) { cause = e

presentViewController: crash on iOS <6 (AutoLayout)

为君一笑 提交于 2019-12-17 03:01:19
问题 This is a weird crash I am getting. The crash happens when I press a button that goes to a certain ViewController. The line which it crashes on is: DestinationInformationViewController *info = [[DestinationInformationViewController alloc] init]; [info setModalTransitionStyle: UIModalTransitionStyleCrossDissolve]; [self presentViewController:info animated:YES completion: nil]; // CRASHES HERE [info release]; The crash trace is: *** Terminating app due to uncaught exception

Getting stack trace from geant

爱⌒轻易说出口 提交于 2019-12-14 04:02:33
问题 I'm trying to compile a project (see this SO question) using Gobo compiler and its tools and I'm getting error messages refering to standard library equal(..) . I'm sure that error is somewhere in the code I have and not in standard library but I don't know how to get some more info from geant . I'd like to know which class, function, line of code from my code invoked equal(..) or any other standard library function which might call it. And yes, I've already tried going through all equal(..)

Android Log.X not printing stacktrace

三世轮回 提交于 2019-12-14 03:43:22
问题 e.printStackTrace() works fine (i.e. prints my stacktrace to stderr) but Log.X fails to print a stacktrace at all. For example: } catch (IOException e) { Log.e("Network", "Exception", e); e.printStackTrace(); } Output: 08-31 03:46:21.992: W/Network(13238): Exception 08-31 03:46:22.092: W/System.err(13238): java.net.UnknownHostException: Unable to resolve host "...": No address associated with hostname 08-31 03:46:22.204: W/System.err(13238): at java.net.InetAddress.lookupHostByName

Can somebody give me a hand about this stacktrace in iPhone app?

有些话、适合烂在心里 提交于 2019-12-14 03:08:24
问题 Program received signal: “EXC_BAD_ACCESS”. (gdb) bt #0 0x30011940 in objc_msgSend () #1 0x30235f24 in CFRelease () #2 0x308f497c in -[UIImage dealloc] () #3 0x30236b78 in -[NSObject release] () #4 0x30a002a0 in FlushNamedImage () #5 0x30250a26 in CFDictionaryApplyFunction () #6 0x30a001a4 in _UISharedImageFlushAll () #7 0x30a00738 in +[UIImage(UIImageInternal) _flushCacheOnMemoryWarning:] () #8 0x3054dc80 in _nsnote_callback () #9 0x3024ea58 in _CFXNotificationPostNotification () #10

Empty StackTrace. Possible?

时间秒杀一切 提交于 2019-12-14 01:12:17
问题 Are there any possible scenarios where the Stack Trace can be completely empty? I was passed an Event Log text copied from machine Event Properties, which says the following: Description : An unhandled exception occurred and the process was terminated. Application ID : DefaultDomain Process ID : 123 Exception : System.OutOfMemoryException Message : Exception of type 'System.OutOfMemoryException' was thrown. StackTrace : For more information, see Help and Support Center at http://go.microsoft

Need help reading the stack traces

走远了吗. 提交于 2019-12-13 18:30:54
问题 I'm getting these stack traces when running my app which crash. I get that it has to do something with "ANR keyDispatchingTimedOut". I'm new in Android development and I need some helping reading the traces. DALVIK THREADS: "main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 s=N obj=0x40028ae0 self=0xcd58 | sysTid=7787 nice=0 sched=0/0 cgrp=default handle=-1345021904 | schedstat=( 12266998315 6628478984 2116 ) at android.database.sqlite.SQLiteQuery.native_fill_window(Native Method)

Android: How to read the entire stacktrace from LogCat (including the ..X more errors)?

假如想象 提交于 2019-12-13 16:06:33
问题 I have an error on my Android Application and one of the really annoying things that LogCat does is write exception Caused at android. at android... at android... at android... and 21 more I need to read the error inside that 21 more. Is there a way to do it? I've tried filtering the results but no luck. 回答1: You can debug the app and add a conditional breakpoint for your exception, or just a normal breakpoint if you know where it's thrown exactly. Then when you're there, you have full access