Questions tagged [debug-logs]
The debug-logs tag has no usage guidance.
120
questions
0
votes
0
answers
30
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
22
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
74
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 ...
1
vote
2
answers
104
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
41
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
59
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
38
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
68
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
112
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
48
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 ...
0
votes
2
answers
73
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
170
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
81
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
278
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
vote
0
answers
103
views
Debugs show during insert on trigger but Debugs Not Showing in Trigger during Test of insert
TL;DR
Test class will not show debug logs in the trigger, but executing an insert from dev console will show the debug logs.
Problem
Hello, running into some odd behavior around testclasses and ...
-1
votes
1
answer
347
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 ...
1
vote
0
answers
29
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 ...
0
votes
1
answer
49
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
1
answer
36
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
87
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 ...
1
vote
2
answers
720
views
Standard Rest API - Logs
In my organization I am doing a simple standard Rest API Call to insert Account:
URL : https://MyInstance.salesforce.com/services/data/v51.0/sobjects/Account
Body : {
"Name"...
0
votes
1
answer
470
views
FATAL_ERROR|System.QueryException: expecting a colon, found ')'
We have issue with one of the apex class which stopping us from configuring a record through lightning component. When we debugged the issue we found this error in debug logs and could not identify ...
1
vote
1
answer
104
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 ...
1
vote
1
answer
325
views
Who runs Email-to-Case
I am trying to debug the case trigger when I create a case via Email-to-Case. But I don´t know which user run the trigger. Any help?
0
votes
0
answers
108
views
Salesforce Debug log shows statements even after Fatal Error statement
I am perplexed by something i see in debug log, and this could be very stupid question.
We have a parentObject and ChildObject (its not mater detail... just lookup relation).
We perform some update on ...
1
vote
0
answers
51
views
Why doesn't flow debug info show in my debug log?
I'm logged into Salesforce Lightning, Health Cloud Admin
I open the Developer Console and set the flow debug levels to finer
I go to an Account record and click Schedule Appointment
I complete the ...
-1
votes
1
answer
320
views
Facing heap size issue when querying and processing apex logs in LWC component
We are creating a apex log table and users will select a log and we need to show the log body to them. While implementing this we are facing apex heap size issue. From the UI users will select the log ...
0
votes
2
answers
93
views
Logging via debug logs
I wanted to ask about debug logs, in my application I need to pass data from Visualforce page to apex class every time I get some message from server. So every time I get a message I call apex ...
1
vote
1
answer
428
views
What is the difference between "System debug logs" and "Monitoring debug logs"
The Salesforce article on debug logs (currently found here) states that "System debug logs are retained for 24 hours. Monitoring debug logs are retained for seven days."
What is the ...
2
votes
1
answer
598
views
How can I see debug logs, when the record is created by System as a user?
I am trying to setup a trace flag to debug. When I select User in the dropdown and try to find System in there. It doesn't show up.
What can I do ?
0
votes
0
answers
30
views
How to check debug logs for trigger when executed from the front end? [duplicate]
How can I check the debug logs for my trigger when some goes to my website and clicks a button that inserts records on salesforce?
0
votes
0
answers
83
views
Debug Log In subscriber org (managed package) not working
I am logged in to the subscriber org through LMA (subscribers)... and I still just get do detail in the log.
Supposedly we should see full detail when logged in through LMA. I do recall this working a ...
0
votes
3
answers
2k
views
How to setup debug log for batch apex
I have a batch 'mytestbatch' which runs everyday through scheduler. This batch will update more than 15lakhs records. During execution mytestbatch is throwing an error 'First error: Attempt to de-...
2
votes
0
answers
175
views
What are ConduitEventConsumer-pool-9687-thread-2 in Platform Event Debug Logs
This is the first time I saw something like this. We fire Platform Events from many places, and they are in plenty, you can say around 100 in a minute in worst case scenario.
Is there any kind of ...
0
votes
0
answers
74
views
Apex Debug is not showing the errors correctly
I have trigger on Task Object as below.
trigger TaskTrigger1 on Task (before insert, before update,after insert) {
If (Trigger.isBefore) {
If (Trigger.isInsert) {
// TaskQueue is Group of ...
2
votes
1
answer
64
views
Analyse apex logs
I am trying to analyse an apex log to find the operation taking maximum time. I am using log inspector.
Under Execution tree : Workflow:user duration is in negative ( -69,295) - What does this ...
3
votes
0
answers
823
views
SFDX: Get Apex Debug Logs returns "undefined"
This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
1
vote
1
answer
572
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
3
answers
1k
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 ...
7
votes
3
answers
4k
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
34
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
2k
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 ...
0
votes
0
answers
149
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
33
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
252
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
610
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
159
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
245
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. ...