Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debug-logs]

The tag has no usage guidance.

0
votes
1answer
51 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
1answer
30 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
1answer
28 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
0answers
34 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
0answers
39 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. ...
0
votes
1answer
26 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 ...
11
votes
2answers
614 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 ...
13
votes
1answer
272 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 ...
0
votes
1answer
136 views

Debug logs for failed REST API calls

I'm debugging an issue where our customer's iOS app (which makes REST API calls to Salesforce via the SDK) is encountering data sync errors. We believe the API is returning error messages but they are ...
3
votes
0answers
71 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
0answers
22 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
1answer
223 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
1answer
71 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
1answer
72 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
0answers
26 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
1answer
31 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 ...
2
votes
2answers
906 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; ...
2
votes
2answers
112 views

Errors after Namespace Addition for Managed Package

I am about to create a new managed package on top of Financial Service Cloud and I noticed I get errors on my test classes after adding the namespace. I tried copying a line and run it on dev console. ...
4
votes
1answer
30 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
1answer
108 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?
0
votes
2answers
520 views

System.debug does not output when written in trigger

I have the following trigger: trigger HelloWorldTrigger on Account (before insert) { System.debug('Hello World!'); } I checked that the trigger code is saved. Now I run the following anonymous ...
0
votes
0answers
69 views

What does waitingJobPage (in Operation column) mean 'in apexLog?

I'm reviewing our logs and I see one with "waitingJobPage/[accountId]/a" in the operation column. What does this mean?
0
votes
1answer
196 views

System.debug not showing up in salesforce trigger execution

I have trigger which works on after update call on a particular object. I added some debug points to understand which data that I am getting from the record. When I click on save button on the ...
1
vote
1answer
341 views

Has Salesforce stopped cleaning up old debug logs? [duplicate]

Seems like every time I open the dev console these days I get this message: The Developer Console didn't set the DEVELOPER_LOG trace flag on your user. Having an active trace flag triggers debug ...
-4
votes
1answer
66 views

Piece of apex code is not working properly

We are having a lightning page on the community portal. The problem we are facing is as follows: The Apex code is working fine & showing desired results only if we are setting debug logs for the ...
12
votes
2answers
5k views

Maximum log level exceeded in Developer Console

Recently I have regularly been getting the error message below when opening the Developer Console: The Developer Console didn't set the DEVELOPER_LOG trace flag on your user. Having an active ...
3
votes
0answers
161 views

Limits information not appearing in debug log

I need to debug a governor limit issue in a particular procedure but I'm not getting the LIMIT_USAGE_FOR_NS section in the debug log even when I set Profiling to Finest. I expect to see this in the ...
2
votes
2answers
4k views

i am unable to create debug log. Getting error

When i try to create debug log i am getting below error. Even i have deleted all user trace flags and checked in dev console also by querying user trace flags. Having an active trace flag triggers ...
2
votes
2answers
643 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, ...
1
vote
2answers
35 views

Troubleshooting a flow without an error message

The Problem: I have a flow which is supposed to be triggered automatically by a Process Builder flow. I am running the flow, but the functionality is not working as expected. Earlier, I was getting ...
5
votes
1answer
658 views

Writing too much to debug log increases heap and cpu time

I have just observed that writing to debug log using System.debug increases heap size as well as CPU time. Is this normal. Please see the screenshot below for the comparison. The first one with so ...
3
votes
2answers
704 views

How are we supposed to use debug logs for a specific Apex class only

I'm trying to capture the logs for a specific class for a user with a lot of transactions (hundreds in any given minute). For example, the user will have 100 transactions done in a minute that will ...
0
votes
1answer
76 views

SYSTEM_MODE_ENTER is not paired with SYSTEM_MODE_EXIT

I have a debug log where some SYSTEM_MODE_ENTER are logged with value true but corresponding SYSTEM_MODE_EXIT are not logged. Have you come across this issue? Any reason why it is so? Here is the ...
4
votes
1answer
464 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 ...
3
votes
0answers
353 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
1answer
30 views

Debugging Salesforce IoT

I'm playing with the new Salesforce IoT. I did some trailhead module to test this new function and then I activated the debug to see how it was, but when I looked in the debug logs I didn't see ...
0
votes
2answers
374 views

How to Debug SOAP UI

Is it possible to run the debug log on a SOAP UI call? I assume not because it is an external service but, because it is calling apex classes, I feel like there should be a way to look at the logs. ...
1
vote
0answers
197 views

How can I view my test classes debug logs of an ant deploy

I have about 20 classes that I deploy to production via ant. Some of my test classes fail. I want to view the debug logs but I cannot find the way to look at the logs of my ant deployment. Any help ...
1
vote
2answers
141 views

Inserting exception logs in a managed package

I have a managed package since we cannot see the debug logs in client orgs we are writing them to a dedicated logging object. We have a problem where it is refusing to write anything. In the debug ...
1
vote
1answer
71 views

Unexplicable “level of access” error when editing Account

So one of my users (with a custom profile) tries to save an edit of an Account and gets the dreaded "You do not have the level of access necessary to perform the operation you requested. Please ...
2
votes
1answer
1k views

Custom visualforce component inside Visualforce Email Template: How to see apex debug messages?

I am using a custom visualforce component with an apex controller inside a Visualforce Email Template (See example below). How to see debug messages from the controller class of the visualforce ...
0
votes
1answer
212 views

Apex Batch Start Method Query Debug Logs

I am trying to run batch from managed package, cant see its code, and batch has empty scope, 0 chunks. When I see the scope query in debug logs there is no where cluase and th records exists in ...
-1
votes
2answers
511 views

Why cant I see my debug logs from anonymous window

I have this piece of code which I like to test from the anonymous window. I aded a static Id from the org. Why do my debugs return empty? here is my code in the anonymous window: public static ...
1
vote
2answers
602 views

I am seeing the Visualforce page message in my debug logs but cannot get it to display on the page!

First, let me state that all of the following code works except forgetting the error to display on the page and that is a big problem! With that said, I have googled all day and have read at least 25 ...
0
votes
1answer
43 views

Debug Logs - how to download data [duplicate]

I want to dowload data which contains debug logs. Is it saving somewhere in files or Database column, from where I can read it? My idea is to stream data from there to my app, which is looking for a ...
1
vote
2answers
46 views

Salesforce added debug log on opening SFDC Console

I am debugging a test class which is reaching debug log size limit.So I added a filter debug log for me which logs system.Error only. However, whenever I running a class from DevConsole, Salesforce ...
6
votes
1answer
336 views

Enabling Debug Logs

I'm using unlimited edition of Salesforce. I would like to enable debug logs for a user for a particular period of time. Currently Salesforce is only enablling a maximum period of 24 hours to enable ...
0
votes
0answers
254 views

How to debug the code to find whether we are getting response from the endpoint url

I have written a Api and Iam trying to debug to check we are getting the response. Please advise how to debug it . I did debug the code but in logs i get Status code ok But not the response. Please ...
3
votes
1answer
114 views

How to exclude logging by class in Summer 17 and later

I have searched and found this, but it is not the same question. I would like to suppress log statement for some classes. In older versions of Salesforce we were able to do this via the Trace Flags ...
0
votes
1answer
78 views

StaticVariables class and System.Debug statements?

I have seen many people writing this kind of system.debug : System.Debug('StaticVariables.acccontactTrigger = ' + StaticVariables.acccontactTrigger); What is the use of StaticVariables here? What ...