Questions tagged [debug-logs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
1k views

VSCodedx is no longer showing execute anonumous debug logs in the output panel

All of a sudden my vscode isn't showing the debug logs from execute anonymous in the output panel. Other messages show up in there such as when I deploy a source to org, Turn on apex debug log for the ...
0 votes
1 answer
875 views

execute method of batch apex not running from anonymous window

I have a batch apex that I made few changes. The functionality of the batch apex is to pull assets of a specific record type, and updates a specific field to true based on a criteria. To test my ...
-1 votes
0 answers
46 views

Apex class not found in change log levels of developer console

I have a class which is Active and appearing in the developer console. But I can't see the same file while selecting the file name in change Log level for that class. Below is the screenshot where I ...
6 votes
4 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]|...
19 votes
2 answers
11k 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 ...
9 votes
4 answers
6k 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
35 views

No logs for a specific custom Sobject

I use the developer console every day for debug. Today I have a strange behaviour : On one SObject, when I edit any record in the UI and make (or not) any change, then save it, I get no log in the ...
0 votes
0 answers
54 views

Unexpected behaviour when firing a apex method

I have this piece of code: public static void initTraitementBillingApi() { String methodName = 'traitementDPF'; ObjectUtil.debugLogBegin(CLASSNAME, methodName, ''); //String periode = ...
2 votes
1 answer
423 views

Reading Debug Logs to Determine What's Using CPU TIme

There is a flow running that attempts to insert ~150 opportunities. It is failing with a CPU Time Limit Exceeded error. When I attempt to reproduce the issue using debug on the flow, I'm getting ...
6 votes
1 answer
4k views

Proxy on all Objects and Arrays logged in LWC - Salesforce

Good afternoon, Witnessing strange behavior today in the browser's developer console when logging objects and arrays from my lightning web component. All objects and arrays are being logged as "...
2 votes
1 answer
839 views

Error when trying to debug log file: Unable to retrieve breakpoint info from language server, language server is not ready

I receive the following error when trying to debug a log file: Unable to retrieve breakpoint info from language server, language server is not ready. I already reloaded my VS Code window, what ...
1 vote
1 answer
91 views

There is a way to download developer console debug logs filtered?

Hi Guys! There is a way to download developer console debug logs filtered? I made this filter on developer console and my wish is to download only this and not all debug file.
1 vote
1 answer
168 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.
6 votes
1 answer
513 views

Is there a way to create Trace Flags for certain user using SFDX?

I'm just tired of manually setting trace flags on my org. My question is, is it possible in any way to create trace flags using SFDX? Or is there any APEX script to create these trace flags for ...
4 votes
6 answers
3k 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 ...
0 votes
0 answers
75 views

Getting Debug Logs for 2nd Generation Managed Packages not on AppExchange

I have a 2nd-Generation Managed Package throwing an error. It is installed in an org other than my Dev Hub org, but I have sysadmin access to both. This package is not on the AppExchange, and so the ...
0 votes
0 answers
86 views

Global action - insufficient access rights on cross-reference id

On Opportunity Object, I have a global action button. This global action type is 'Create a record'. The purpose of this action is to convert the Opportunity into an Order. It is working for me as a ...
0 votes
1 answer
111 views

Debug log do not trigger for Mobile actions

I have a custom detail page vf button on Opportunity, once the user clicks it, it runs few validations and redirects to another vf page. It works in Lightning experience in PROD and Sandbox in browser ...
7 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 ...
1 vote
1 answer
94 views

Capture debug log via subscriber access

I am getting an exception from managed package code and I need to capture debug logs via Subscriber access so that all details from managed package code are displayed. How can I enable this setting to ...
11 votes
1 answer
8k 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
475 views

`sfdx force:apex:log:tail` to only show [USER_DEBUG] logs not working

I'm connected to a Playground org in VS Code. I have made and deployed a class to this org and would like to run some anonymous code in VS Code to test a method of the class. I was able to do this by ...
3 votes
0 answers
95 views

Formatting and color of values of objects logged in chrome devtools is unreadable in dark mode

After the Winter 23' release added Lightning Web Security I started having a problem viewing the values of JavaScript objects. Correct me if I'm wrong but to debug LWC in chrome devtools with LWS ...
0 votes
0 answers
666 views

Scheduled Apex Batch job taking too long to execute

I have one batch job which delete old account associations then create new account associations & update fields[ For which logic is written in a trigger] Previously it was taking less time, it ...
0 votes
1 answer
863 views

Salesforce event monitoring log access required permissions

Have a requirement to create a permission set which will allow users to access the event log monitoring files. As per this link https://help.salesforce.com/s/articleView?id=000363350&type=1 User's ...
1 vote
0 answers
57 views

Replay Debugger Filters

Does anyone knows if we are able to filter Replay Debugger Logs? I mean, lets say we have a collection of data, which will be iterated 1000 times. Let's say we are interested to see what data are ...
2 votes
1 answer
228 views

Prevent flows from writing sensitive data to debug logs in plaintext

We have a screen flow that collects a password from the user using a Password field component. That masks the input on screen, but when looking at debug logs, the value of that field gets written to ...
0 votes
0 answers
1k views

Can't view debug logs in Developer Console - Failed to load data Log from Salesforce.com: Salesforce automatically deletes system logs 24 hours

The following error is coming up in a Sandbox Developer Console no matter what I try and it's been like this for weeks. Video: https://www.screencast.com/t/ULztMIi0edS0 Failed to load data Log from ...
0 votes
0 answers
501 views

How to Find Debug Logs in Apex Test Class

Hey there this is my first Apex code and I'm having trouble finding my debug logs. Heres my Trigger and Test Class First, then below I'll try and explain all that I've tried so far. trigger ...
1 vote
0 answers
75 views

Help with understanding debgf log on a decision element in a flow

I'm trying to understand what these lines mean when it says true and false on my debug log. Line 1 says False | False Line 2 says true | False Line 3 says true Line 4 says just false What does the ...
1 vote
1 answer
512 views

Developer Console: Keep constantly open without stopping producing debug logs

If i open developer console and leave it open without any activity, i get a message after (e.g. 1hr) that "Your Developer Console session has been idle. To resume logging and listening for ...
8 votes
1 answer
2k views

How to debug Post-Install script?

We don't get much information on email received by subscriber if Post-install script fails. Problem: Unexpected Error The package installation failed. Please provide the following ...
1 vote
2 answers
508 views

Hide Debug Logs of Managed package

We have a managed package installed, where we have performed several customizations. Now, it is needed to test the whole solution end-to-end. But i have to issues: Managed package has a VF page ...
0 votes
1 answer
251 views

How to override logging on a particular APEX class

The document Debug Log Filtering for Apex Classes and Apex Triggers says log filtering can be "turned off" for a particular class. How is this done? I have a class1 calling calling class2. ...
0 votes
1 answer
235 views

Debug log for AccountContactRelation trigger doesn't show up on after delete

I have a trigger on AccountContactRelation object, which tracks after update and after delete events. When I update ACR record - I see the log on the after update trigger transaction. But when I ...
1 vote
0 answers
130 views

Apex Log manager needed, or way how to filter big amount of logs

I'm looking for some tool, or extension for managing/ searching Apex logs. My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone. Basically, when I reload one ...
0 votes
1 answer
577 views

Apex Debug logs not showing Statement executes

I am trying to run a batch class from anonymous window. In the debug logs i am not getting the statement executes. Only method entry/exit is showing. Debug level for apex is set to finest. It keeps ...
-3 votes
2 answers
731 views

Is it possible to know WHY SOQL retrieves EMPTY?

I have a SOQL in an APEX Class, and it works okay when I'm logged as a System Administrator User, but it gets empty when I log as a different user. I suppose it could be permissions and field ...
0 votes
0 answers
90 views

High API usage, repeated calls!

Over the weekend our Salesforce environment is now getting thousands of API calls every hour. We have custom integrations that have not changed, nor have any API's been deprecated, or any server ...
13 votes
2 answers
12k 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 ...
0 votes
1 answer
111 views

EDA: Enabling debug logs

I am working on creating some classes on top of EDA package. Inside the EDA package, there are some debug statements which is controlled by a field Enable_Debug__c on Hierarchy Settings custom ...
0 votes
2 answers
376 views

Get Logs on User Password Reset Button

Greetings Salesforce Friends! I've got a bit of a weird situation around Users in a Community getting the wrong email when we use the User Record Reset Button. Is there a way to get the logs for this ...
0 votes
1 answer
585 views

What is the 'SFDC_Devconsole' debug level?

I am trying to retrieve error logs for a batch apex class and am creating a new user trace flag for the running user. The standard preset is 'SFDC_Devconsole' - will this trigger debug logs to show ...
1 vote
1 answer
294 views

Is there a way to check @RestResource usage frequency?

Can you please tell me, if there is a way to check @RestResource usage frequency? Short summary: I have a legacy @RestResource which is supposedly not used by anyone. I want to check that. I have ...
1 vote
1 answer
3k views

Logs for flow execution are not detailed

I am building a basic public page form on the salesforce communities, creating a 'Property lead' record in our org. By giving edit access to 'Guest User' I can create the records with no problems. I ...
-1 votes
1 answer
2k views

How can I capture Debug Logs for Web to Lead form?

The error is Salesforce could not create this lead because of the reason listed below. For more information about this error or help with Web-to-Lead, please contact Customer Support. Reason: Use one ...
6 votes
3 answers
7k views

How to Query ApexLog raw body?

I need to find, in ApexLogs raw bodies, references to a given String value. I know we can query the object ApexLog fields, by using the following code: SELECT id, loguserid, ...
0 votes
1 answer
116 views

Difference between sending leads into Dev account as opposed to Sandbox account? Leads not sent into Sandbox with similar settings as Dev account

We have created a webapp to send Leads into the salesforce system, which works great in our Dev account. However when using the same app for another business, which has a Sandbox account, the Leads ...
0 votes
1 answer
204 views

Is there a debug log level for Salesforce Streaming?

Is there a debug log level for Salesforce Streaming ? For example, let's say that, I have subscribed to PushTopic or Platform Events? Is there a debug log level setting which allows to see the logs ...
8 votes
1 answer
4k views

Debug Log Traced Entity Type Apex Class

I am setting the debug log Entity Type to APEX Class and it is not logging anything when I call the class. The class I am setting it as is definitely being called, the date/time is set to 24 hours ...