Questions tagged [debug-logs]
The debug-logs tag has no usage guidance.
133
questions
1
vote
1
answer
931
views
View debug logs to find which line is causing my error?
I've ran into an unexpected error in my lightning component and am trying to figure out where its happening/what's causing it so I can fix it. I must have skipped this section when learning Salesforce ...
4
votes
4
answers
2k
views
Mass delete Debug logs using Salesforce DX
In my developer sandbox the Apex logs count has exceeded beyond its limit and there are more than 1 lakh records created in it. I want to mass delete them, but not able to do so.
I am using the ...
8
votes
3
answers
5k
views
How to see anonymous code debug logs in visual studio code?
I installed the Salesforce CLI and the Salesforce Salesforce Extension Pack on Visual Studio Code because it's easier to write code than the Developer Console but I got a problem. I want to get the ...
0
votes
1
answer
108
views
How to check debug logs for a user for whom tracing is not set
I need to check the debug logs when a user creates a case from the community. Obviously i will not be knowing which user will be creating a case in advance hence i cant set trace flag. How to check/...
2
votes
3
answers
3k
views
Visual Studio Code - Developer Console
I have been trying to use Visual Studio code over the Developer Console because I understand that this will be the new standard for Salesforce however I find myself using the Developer Console with ...
1
vote
0
answers
275
views
Downloading Debug Logs in Subscriber Org
Recently my team was given access to a customer's org to investigate an issue. We were able to log into the subscriber's org with using the LMA. We were able to see the debug logs inside our package ...
1
vote
1
answer
36
views
Developer Console Overwhelmed by Logs
So my developer console is overwhelmed by logs. I have a fair amount of regularly running (light) processes that overwhelm the web Sockets. It makes it very difficult in production to look into issues....
0
votes
1
answer
309
views
Tracking Salesforce object changes - alternative tool for event monitoring
Is it possible to determine what process/trigger/code made a change to an object in SalesForce?
We have cases being created by Email2Case and there instances where we want to blank out the account ...
0
votes
1
answer
955
views
Viewing/Loading downloaded Logs in Developer Console
Developer Console is a really powerful tool when it comes to debugging logs (specially with different perspectives). Developer Console provides an option to download logs, but is there a way to view/...
0
votes
1
answer
475
views
Determining what process has updated a field
We are using Service cloud to provide services support.
Bulk of cases are created via email using Email2Case.
Emails submitted via internal (sales/support staff) addresses are generally related to ...
1
vote
0
answers
1k
views
How to get ApexLogs in an action called from LWC
I would like to know how to obtain the data that my apex method is generating step by step, system debugs. I have not seen any documentation on the internet which has some information of what I need.
...
3
votes
0
answers
471
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
32
views
Persisting Logs in Managed Packages
What is the best practice to persist logs from apex classes, batch jobs, and controllers? We are still in the development stage so we haven't considered LMA. We tried to store it in a custom object. ...
1
vote
1
answer
3k
views
to know more about (already output) in logs [duplicate]
While using system.debug for a list
I get an already output statement added in the logs as
USER_DEBUG|[]|DEBUG|lstApprovalDetails
(ApprovalDetails:[startDate=2002-01-03, status=Rejected], (...
11
votes
1
answer
6k
views
What is the purpose of Apex Class Trace flags?
I have an Apex Batch Class that I'm trying to view the debug logs for. I know that I can do this in the Dev Console, but the data and amount of logs its returning is causing the Dev Console to freeze. ...
0
votes
0
answers
67
views
How do i get logs for a lightning component loading in salesforce android app?
I have added a lightening component to Salesforce, and its rendering fine in chrome on Salesforce and in Salesforce iOS app.
But, its not loading in Salesforce android app. and is showing blank.
Any ...
3
votes
3
answers
1k
views
How to analyze Apex CPU consumption
Is there a tool or a recommended approach to analyzing Apex CPU consumption based on a debug log?
For example, consider the log entries below.
18:47:41.12 (7012039114)|CODE_UNIT_STARTED|[EXTERNAL]|...
0
votes
0
answers
155
views
System.Debug() appears to be summing additional logged values
I'm running the following code, and I just want to log the total amount of deletes, and the total amount of records passed into the method and return the total amount of records that were processed ...
8
votes
4
answers
2k
views
is there a way to check a debug statement belongs to which class
Is there a way to know if we can get class name or trigger or a component along with a debug statement like a system.debug line no and class to which it belongs?
I asked this because i came along a ...
2
votes
0
answers
100
views
With Lightning UI enabled - is it possible to stop /aura Operation spam in Developer Console's log panel?
When I have Lightning UI Enabled, Open the Dev Console and toggle to the "Logs" tab, my log is spammed with nearly endless /aura operations.
This slows down my general experience in lightning as ...
1
vote
1
answer
315
views
Debug statement truncated in Raw Log
It seems like something was implemented last spring that truncates long debug statements in the developer console. All the solutions say to view the raw log. I opened the raw log from both the ...
1
vote
1
answer
113
views
Debug log Operation column "/services/data..."
We have an update that happens on leads and we are trying to understand what is the source.
i looked at the debug logs and saw the following info:
What does "/services/data/v26.0/sobjects/Lead/...
1
vote
1
answer
90
views
ApexLog's field DurationMilliseconds is giving large values for Schedule jobs
I was trying to debug a issue for scheduleable class, I found out that it is taking approx 65,00,00,000 milliseconds which is equal to approx 180 hours. But if I open that debug logs and see execution ...
2
votes
1
answer
7k
views
How to obtain trigger log from Email2Case?
I have a trigger on EmailMessage that is looking at newly inserted emails sent for Email2Case, and parsing the text for certain trigger words and updating the case if found. This has been working, ...
2
votes
1
answer
1k
views
Developer Console Debug Logs Viewer
How can i see the entire body of the last debug log in developer console in Salesforce?
3
votes
0
answers
410
views
Is Anyone Else Seeing sfdx force:apex:log:tail Only Using The SFDC_DevConsole DebugLevel Regardless of Setting --debuglevel Flag
Okay so I've read the answer here How do I set the log levels for force:apex:log:tail? as well I have read all the documentation I can find for the sfdx force:apex:log:tail command. And everything I ...
1
vote
1
answer
83
views
How to get a debug log for a REST service in a managed package?
I have an error that occurs somewhere in a REST service in my managed package. I've been trying for hours to get some kind of debug log out of the subscriber Org but to no avail. Whenever I fire a ...
1
vote
1
answer
212
views
Best practice to log exceptions in Salesforce [closed]
Salesforce generated many log files and from there it is very difficult to find out our desired logs (exception logs ).
What is the best practice to do that?
2
votes
1
answer
1k
views
How do I set the log levels for force:apex:log:tail?
I'm in SFDX/VSCode, using the sfdx force:apex:log:tail command. That makes it easy to pull up the latest log, but when I try to launch the debugger, it says I need Apex at FINEST and VisualForce at ...
0
votes
0
answers
30
views
Best way to log an error [duplicate]
Which is the best way to log an error/debug logs in Production enviornment (Salesforce/apex)?
2
votes
1
answer
164
views
Force.com Site - Data not loading - No log
I have a simple Force.com site made of few VisualForce pages.
I use the same code also in Salesforce (button on Opportunity object). In Salesforce everything work very well but on Force.com site ...
0
votes
1
answer
380
views
How can I add "set-cookie" to a RestResponse?
A few years ago, Salesforce disabled debug logs for REST guest calls. The only way to enable generating the logs is to add a cookie to the incoming call. Docs here.
The incoming call in my case is ...
0
votes
1
answer
285
views
How to see log of a single bulk insert statement
Is there a way to find if the user insert the records is that through bulk statement or individual insert records?
I have look DebugLog and ApexLog object but does not give me a lot of information ...
1
vote
1
answer
1k
views
Can not enable debug logs because there are "too many logs" [duplicate]
I am trying to set up debug logs for a user, but every time I try it, I get the following error:
Having an active trace flag triggers debug logging. You have 329 MB of the maximum 250 MB of debug ...
2
votes
1
answer
362
views
How to send debug log with email
Assume that We have try catch structure and if exception throw, I want to send all debug log in email as an attachment.
Is that possible?
0
votes
1
answer
364
views
getting Must trace apex_code at finest when checking the variable panel
I have already set the apex debug level at FINEST but still when I check the variable panel I still see the message must trace APEX_CODE at Finest can someone please suggest on the same?
Below is the ...
2
votes
0
answers
473
views
How can I get Debug Logs for Apex code in my Managed Package which is invoked via Execute Anonymous on the Subscriber Org?
I have installed a Managed Package and connected it via the LMA. The subscriber org shows up under the Subscribers-Tab. An user on the subscriber org has granted me (as package provider) login access. ...
1
vote
1
answer
385
views
Debug logs on triggers
I have a requirement to capture logs related Account and Opportunity triggers. I have configured 'Traced Entity Type' to 'Apex Trigger' , 'Traced Entity Name' to 'Account Trigger' and 'Debug Level' to ...
13
votes
2
answers
9k
views
System.debug(JSON.Serialize(o)) Not longer shows full string
For the longest time I have been using System.debug(JSON.Serialize(o)) to output objects to the debug log for troubleshooting purposes. This has worked up until my most recent project. Even existing ...
18
votes
2
answers
9k
views
Developer Console suddenly truncating System.Debug output
Like many devs, I use JSON.Serialize() with System.Debug() to output large lists/objects to the Debug Log when needed. Over the past few days, I've run into a new issue with Developer Console where ...
6
votes
0
answers
2k
views
Mass delete Debug logs using Developer Console: Invalid cross-reference id
Given
warning in Developer Console that Debug Logs exceeded limit and some must be deleted in order to set new trace flags
execute in DC (via Tooling API option in Query Editor) Select Id from ...
0
votes
0
answers
49
views
Unable to view debug logs when it has an error
Lately, whenever I get a null-pointer exception, I am not able to open the debug log associated with it. I've tried several tools and it always says its been deleted before I can open it, even if I ...
4
votes
1
answer
668
views
Apex Replay Debugger: Cannot read property 'name' of null
When I select Launch Apex Replay Debugger in VS Code it asks me to select a log file and then gives me this error message:
Cannot read property 'name' of null
I've managed to get the Apex Replay ...
5
votes
1
answer
207
views
Omit debug logging for specific Apex class
Scenario
I do not want information that is processed by an Apex class called SecureProcessor to make it into the debug log, regardless of the level of logging enabled within Salesforce Setup.
...
0
votes
1
answer
337
views
ActionFunction call a controller method but "system.debug" messages are not printed
I have a visualforce page with a page component showing a list of object.
I need to call a controller method when a user updates an <apex:inputField> in order to print in the log that value.
...
1
vote
0
answers
142
views
Debug a Beta version of the managed package
Is it possible to debug a Beta version of the managed package? It seems that LMA works only with those apps that were published on AppExchange.
Thank you.
1
vote
1
answer
148
views
Inconsistent Debug Value
Debug Log captures all the values once holding maximum Log Size,and subsequent debug value with minimum log Size having no proper value.May I know what causes this issue?Any Help please?Thanks in ...
3
votes
2
answers
9k
views
How to Delete All Debug Apex logs in Apex? [duplicate]
I'm trying to delete the complete Apex debug logs but getting DML operation Delete not allowed on List<ApexLog>.
Code:
List <Apexlog> loglist = [Select Id from Apexlog];
delete loglist;
...
4
votes
1
answer
274
views
Debug Log Levels Ignored
I have a class that has too many SOQL query error. Normally I'd set debug log levels to my DB Trace level
When I run my test method that throws the error, the logs are too large so it only shows 3 ...
0
votes
1
answer
540
views
Can i see only of my debug logs in salesforce?
In my org there are tons of users. When i want to see my debug logs, i see thousands of debug logs which is not relevant for me, what should i do to check only of mine logs?