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

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 ...
Eric Whipple's user avatar
0 votes
1 answer

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 ...
AdityaHM's user avatar
  • 133
10 votes
1 answer

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 ...
itsmebasti's user avatar
  • 6,477
3 votes
1 answer

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 ...
Arthlete's user avatar
  • 4,957
0 votes
2 answers

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 ...
Giri Liyangi's user avatar
3 votes
0 answers

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 ...
Robin De Bondt's user avatar
1 vote
1 answer

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 ...
manymanymore's user avatar
3 votes
1 answer

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 ...
Charles T's user avatar
  • 11k
54 votes
2 answers

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. ...
Madhurima's user avatar
  • 1,425
7 votes
1 answer

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 ...
Adrian Larson's user avatar
  • 151k
14 votes
2 answers

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 ...
Bigears's user avatar
  • 1,131
12 votes
0 answers

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 ...
Daniel Ballinger's user avatar
0 votes
2 answers

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 ...
Jen's user avatar
  • 109
3 votes
1 answer

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 ...
k..'s user avatar
  • 1,217
1 vote
1 answer

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 ...
Uwe Heim's user avatar
  • 28.4k