stack-trace

How can I get stacktrace for Adobe AIR global runtime errors in non-debug mode?

不羁岁月 提交于 2020-01-04 14:31:13
问题 The new version AIR gives us the ability to globally capture run time errors and handle them. The problem is that it doesn't have the stacktrace or any helpful information about the error other than the error id and error message and name. For example it may tell me that a null pointer exception has happened but it will not tell me where or which method or anything. The debug version of the runtime gives us all of that but when the app is deployed to customers it is not running on the debug

How to get a stack trace for “Invalid chrome URI” exceptions?

北城余情 提交于 2020-01-04 07:09:22
问题 I'm debugging a XUL-based Firefox extension which has been broken by Firefox 46 release. When I run the extension, the Browser console shows: Invalid chrome URI: / with neither line numbers nor stack trace. On Web forums, I've read that ChromeBug could be used for that. Then, I've tried the latest stable version of ChromeBug (1.7.2) but it hasn't been updated since oct. 2014, and seems to be incompatible with recent Firefox versions. Because the extension is an "old-style" one, I cannot use

How to get the line number from a Stack Trace?

谁说胖子不能爱 提交于 2020-01-04 06:31:13
问题 I am trying to get the line number from a stack trace in my WP7 app. I have set debug info to full and am running the app in the Debug configuration, but there are no line numbers in stack traces. How can I fix this? I am aware of BugSense, but do not want to use it. 回答1: Don't think this is even possible, as line number refers to the number of the line inside code-file , which has lost any relation with the binary after compilation. That's why we use PDB files. They are "databases" for

What is a Stack Trace? [duplicate]

China☆狼群 提交于 2020-01-02 17:43:22
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: CallStack determines where you are going next? Started from the comment in this question, I thought I knew what a Stack Trace was but I guess I didn't. I've Googled it but could find a clear answer. @asawyer says The stacktrace doesn't identify where you've been, it tells you where you are going next. Here is a little program using System; using System.Collections.Generic; using System.Linq; using System.Text;

What is a Stack Trace? [duplicate]

扶醉桌前 提交于 2020-01-02 17:42:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: CallStack determines where you are going next? Started from the comment in this question, I thought I knew what a Stack Trace was but I guess I didn't. I've Googled it but could find a clear answer. @asawyer says The stacktrace doesn't identify where you've been, it tells you where you are going next. Here is a little program using System; using System.Collections.Generic; using System.Linq; using System.Text;

Can you get Method name that threw Exception?

那年仲夏 提交于 2020-01-02 07:32:36
问题 Is there a C# method that returns to the upper-most caller, the Name of MY Method that threw an exception, even if the actual exception was thrown by another (e.g. database driver errors when my method calls it) ? Caller -> MyMethod -> DbDriver(error) I want "MyMethod", not "DbDriver" I'd rather not re-throw exceptions all the way up the chain. My current kludge, is to iterate through the StackTrace frames, and parse out my Method using MethodBase.GetCurrentMethod().DeclaringType . Is there a

Calling C function which takes no parameters with parameters

时间秒杀一切 提交于 2020-01-02 06:54:10
问题 I have some weird question about probably undefined behavior between C calling convention and 64/32 bits compilation. First here is my code: int f() { return 0; } int main() { int x = 42; return f(x); } As you can see I am calling f with an argument while f takes no parameters. My first question was does this argument is really given to f while calling it. The mysterious lines After a little objdump I obtained curious results. While passing x as argument of f: 00000000004004b6 <f>: 4004b6: 55

How to find this stack trace?

本秂侑毒 提交于 2020-01-01 08:04:16
问题 My program keeps crashing, but the logcat does not show any exceptions. I just get the following message, plus a lot of stats about CPU usage. Clearly I'm using too much of the CPU, but I don't know what part of my program is doing this. Where is the following file? I can't find it. 12-30 23:13:06.639: INFO/dalvikvm(7688): Wrote stack trace to '/data/anr/traces.txt' 回答1: adb shell --> cat /data/anr/traces.txt EDIT: You need to have root access to modify the files in /data/ you should be able

How to find this stack trace?

偶尔善良 提交于 2020-01-01 08:04:08
问题 My program keeps crashing, but the logcat does not show any exceptions. I just get the following message, plus a lot of stats about CPU usage. Clearly I'm using too much of the CPU, but I don't know what part of my program is doing this. Where is the following file? I can't find it. 12-30 23:13:06.639: INFO/dalvikvm(7688): Wrote stack trace to '/data/anr/traces.txt' 回答1: adb shell --> cat /data/anr/traces.txt EDIT: You need to have root access to modify the files in /data/ you should be able

What is the number next to the method name in a stack trace?

不打扰是莪最后的温柔 提交于 2020-01-01 05:40:13
问题 I have a simple question, I suppose, but I cannot find anything. What's the number at the end of line 6, + 429 ? 回答1: It means that the return address for stack frame 6 is 429 bytes past the start of the -[#### tableView:cellForRowAtindexPath:] function. It might be inside that function, or it might be past the end of the function but not inside any other known function. UPDATE In order for the symbolicator to turn those return addresses into line numbers, you must have the .dSYM file that