stack-trace

C# equivalent to Java's Exception.printStackTrace()?

Is there a C# equivalent method to Java's Exception.printStackTrace() or do I have to write something myself, working my way through the InnerExceptions? ...

What does this mean in a stack trace?

I see this in a stack trace: myorg.vignettemodules.customregistration.NewsCategoryVAPDAO.getEmailContentByID(I)Lmyorg/pushemail/model/EmailContent; What does the "(I)L" mean? ...

How do I get ruby to print a full backtrace instead of a truncated one?

When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, the actual offending line of code is hidden from me: tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError) from tmp.rb:10:in `s' from tmp.rb:13:in `r' from tmp.rb:16:in `q' from ...

How to force ruby to show full stack trace?

I just got this error message: ... from c:/ruby/lib/ruby/gems/1.8/gems/... ... 10 levels... from c:/ruby/lib/ruby/gems/1.8/gems/... ... and the bug (of course) is hidden somewhere in ... 10 levels.... How to force ruby to show full stack trace? ...

Stacktrace information preserving paths of original source

I am using C#.net for application development. To log and debug exceptions, I use the stacktrace. I executed my application on another machine, but when errors occur it refers to the path of my development machine. Ex: D:\Projects\xyz.CS line no :12 _Error_message_here. Why does it trace to the path on my development machine path ...

How do I obtain a stack trace on Windows without using dbghelp.dll?

How do I obtain a stack trace of addresses on Windows without using dbghelp.dll? I don't need to know what the symbols or function names associated with the addresses, I just want the list of addresses -- something similar to backtrace of *nix systems. Thanks! ...

In Java, how do i find the caller of a method using stacktrace or reflection?

I need to find the caller of a method. Is it possible using stacktrace or reflection? ...

Calling Method in .Net CF

I want to perform following operation in .NET Compact Framework. I am looking for Calling Method type. http://www.csharp-examples.net/reflection-calling-method-name/ .NET Compact Framework doesn't support StackFrame class. Also, GetCurrentMethod() is not available in MethodBase class. ...

getting the list of all functions executed like call stack in asp.net

Hi, I am having trouble with debugging one of the problems that I am having in our website. This is the problem. I have a webpage that contains the photo of an employee and information related to the employee. When the user logins to our website, we are storing the details of the employee in session. I am setting the image url for the p...

How to print stack trace of an exception in a velocity template

How to print the complete stack trace of the exception using a velocity template My present template has $exception as template variable, which contains the exception. ...

How to print the current Stack Trace in .NET without any exception?

I have a regular C# code. I have no exceptions. I want to log the current stack trace for debugging purpose. Example: public void executeMethod() { logStackTrace(); method(); } ...

Eval stacktrace with formatting

I want to take an EventLog entry which has a stack trace in its Message and bind it to a GridView. If I use Eval("Message") and put it in a label or a < p >, it displays, but the stack trace is smashed together. If I Eval it in a TextBox, it keeps its formatting. Is there a way to evaluate this stacktrace value to some sort of literal...

Why does StackWalk64 return always true?

I tried to make my program dump and save its stack trace when crashes. I installed my own win32 SE handler with _set_se_translator and tried to dump the stack trace with StackWalk64 and finally throw a C++ exception (which actually does the logging when caught). The code looks like this: ... _set_se_handlers(WIN32EXCEPTION::Win32Except...

Any way to avoid Property inline optimization in C#?

So I have a PropertyBag class that is intended to implement INotifyPropertyChanged. In order to make this code work as cleanly as possible and to avoid user error, I am using the stack to get the property name. See, if the property name doesn't match the actual property exactly, then you will have a failure and I am trying to protect f...

Need help deciphering a C# stack trace

I have an application that is locking on the GUI thread, and I've used WinDbg, along with the "!clrstack" command to get this stack trace, but I can't figure out where the issue is. All of these methods look like framework methods, and none are mine. Any help would be much appreciated. I apologize for the long lines OS Thread Id: 0x724 ...

IE hanging with 100% CPU / Got stack trace

I have a situation where IE7 hangs accessing my web app. Based on the excellent suggestion from George V. Reilly, I installed WinDbg to download the IE symbols, setup Process Explorer to use those symbols, and then used Process Explorer to get a stack trace for the hung thread. I have pasted the stack trace below. Does someone more fami...

How can I get a Javascript stack trace when I throw an exception?

If I throw a Javascript exception myself (eg, throw "AArrggg"), how can I get the stack trace (in Firebug or otherwise)? Right now I just get the message. edit: As many people below have posted, it is possible to get a stack trace for a JavaScript exception but I want to get a stack trace for my exceptions. For example: function foo(...

How do I obtain crash-data from my Android application?

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance of my application running on the wild so that I can improve it and make it more solid. ...

Portable C++ Stack Trace on Exception

I am writing a library that I would like to be portable. Thus, it should not depend on glibc or Microsoft extensions or anything else that is not in the standard. I have a nice hierarchy of classes derived from std::exception that I use to handle errors in logic and input. Knowing that a particular type of exception was thrown at a pa...

Display lines number in Stack Trace for .NET assembly in Release mode

Is there a way to display the lines in the stack trace for the .NET assembly build/deployed in Release mode? UPDATE: My application is divided into three class library projects and one ASP.NET "website" project. The error I am trying to track down is in one of the three class library projects. I only deployed the pdb file for the cl...