Skip to main content

Questions tagged [stacktrace]

A stack trace (also called stack backtrace or stack traceback) is a report of the active stack frames at a certain point in time during the execution of a program. When a program is run, memory is often dynamically allocated in two places; the stack and the heap.

Filter by
Sorted by
Tagged with
2 votes
1 answer
87 views

How expensive is throwing an Exception ? (I want a stack trace for non-exception conditions)

One way to get a hold of the current stack trace at any given point is to purposely throw an exception, catch it immediately, and inspect the trace information. I keep reading about the expense of ...
0 votes
2 answers
278 views

apex class trace problem: start date and end date cannot configure

I want to trace an apex class running process then setup as following: click Developer console->debug->change log levels In the section "class and trigger trace overrides", I choose related apex ...
0 votes
1 answer
350 views

How to expose stack trace from one managed package to another managed package

In my org I have managed package with namespace DeltaLKU which contains apex classes & components for the application that we are developing and I have installed another third party managed ...
10 votes
1 answer
971 views

Exeception line numbers are not reliable

I spent quite some time debugging an issue because the stack trace line numbers were not correct and wanted to share my findings. The problem seems to be 10 Years old and fixed, but under specific ...
54 votes
2 answers
74k views

Error while updating debug log trace flag

I am trying to update the debug log trace flag for my user but getting the following error Having an active trace flag triggers debug logging. You have 259 MB of the maximum 250 MB of debug logs. ...
3 votes
1 answer
851 views

Latest on reviewing errors in a managed package

I know this has been discussed before but all of the threads are several years old. I couldn't find a finite answer and also I am trying to find out if anything has changed since. I am trying to ...
0 votes
2 answers
142 views

System.LimitException: ivybat:Too many SOQL queries: 101 - Stack Trace

I am getting this error as my unit test are failing and in the stack trace getting class names which are not related to my test class. Object name is also appended in the error, the object name is ...
3 votes
0 answers
996 views

Exception.getStackTraceString() returning '()' on object with managed package trigger when debug logs not on

First of all, my question is very similar to this one and might actually be a duplicate, however there is no notion of a managed package or debug logs there. We have an after insert trigger on ...
1 vote
1 answer
905 views

Stack trace reference in Salesforce Commerce Cloud

On my sandbox, in my logs, I got an error and I got a reference to the stack trace of the error: Stack trace <ref:a6d7f20c52ed080c41c1e8e66b1bac4f> Is it possible to find the stack trace ...
3 votes
1 answer
3k views

Managed Package: Catch exception and then re-throw asynchronously?

I'm working on a managed package in which our customer (the company that asked us to develop the package) runs into certain exceptions in edge case UAT scenarios (e.g. API has gone bonkers for 10 ...
7 votes
1 answer
3k views

How to get running class and method names programmatically? [duplicate]

There is a logger class in my org that accepts class name and method name as parameters. So often, you will see code of roughly the following form: public class MyClass { public static void ...
14 votes
2 answers
9k views

Salesforce Developer Console - Getting a stack trace easily

When looking at a particular line in a debug log in the Developer Console, is there an easy way to get the stack trace for that particular line? I have a CPU Time out issue with my tests and I've ...
12 votes
0 answers
194 views

Fluctuations in obfuscation of managed package details

I've seen Salesforce obscure certain details about a managed package when it was deployed in a subscriber org. For instance, the debug logging generated from the managed package namespace isn't ...
3 votes
1 answer
448 views

Rewriting Try + Catch{System.Assert(false, 'blahblah')} for easy toggle-off of catch?

Dear Salesforce StackExchange, An outside partner set a precedent in some of our Apex triggers of doing major operations (such as DML) inside a try/catch block, and having the catch block simply ...
1 vote
1 answer
48 views

Visualforce-Community: Is it possibe to override the errorpages AND get there a full Exception display including StackTrace?

Working on Communities, but getting only the generic Errorpages is not useful for managing bug-reports. By default it looks like this: I know how to override that here: I would like to see as much ...