Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
53 views

Weird issue with Debug Statement and trigger handler

I have a weird issue that I'm not even sure how to describe completely. Basically, in my trigger handler class I'm using a set of set of Ids to compare records so only the new records not contained in ...
0
votes
1answer
868 views

Debug log is not capturing the Logs [duplicate]

I have set a Debug Log in my sandbox Org but it did not capturing any logs. Please advice what it my be the reason for it.
0
votes
2answers
489 views

Why the debug logs are not showing executed workflows

I would like to debug on workflows that are getting executed on changes to the Contact record. However, I am not able to see any workflow steps that have been executed during their creation in the ...
17
votes
1answer
11k views

Debug logs not working for Site Guest Users (Force.com sites) after the Winter 17 release [duplicate]

Recently our team has noticed that turning on the Debug Logs for a Site Guest User has stopped working. Prior to the Winter 17 release, if you turned on Debug Logs for a Site Guest User, logs appear ...
3
votes
0answers
62 views

Salesforce1 memory leak with custom vfpage

We create a lightning ready VF page. It works perfectly in Lightning experience on desktop. But it's really slow in salesforce1 on IOS, and look like creating memory leaks we cannot reproduce on ...
2
votes
1answer
41 views

How to set a debug log to trace the process of the Custom URL order form in Sites

Hi There is a exception Iam getting in the Online order form while submitting it throws the common error for all users, It seems to be an Exception, However I tried to set a Debug logs to trace it but ...
0
votes
0answers
53 views

Advice on Red Curly Brackets [duplicate]

Does anyone have any advice on debugging someone else's code that has a number of red curly brackets? The code works so it's just me trying to clean it up. They are no longer with the company so I can'...
2
votes
0answers
52 views

Query results in Query Editor are different then Degbug Log Results

When I query ActivityHistory in my SOQL editor, I get back the correct results with the correct format of the activity date: [{"CreatedById":"00534000009QnEtAAK","Subject":"Call","Description":"this ...
0
votes
1answer
317 views

Sandbox Scheduled Apex not creating debug log

I am trying to set a scheduled Apex job to run daily at 1AM. Records are not being inserted as I believe they should be. I imagine there is are errors occurring during execution of the class. I have a ...
12
votes
2answers
540 views

Debug log is filled with USER_INFO

My debug log is completely filled with USER_INFO. I adjusted the log levels in all possible combinations hoping to get rid of this. But that didn't help. Can some one please help me understand what ...
2
votes
0answers
44 views

Differently aligned Save and Cancel button in debug edit page Summer 16

In a Summer 16 org i'm seeing some UI changes at least in Edit trace flag screen. When i edit user trace flags for my user I see the Cancel button is left aligned and Save is right aligned (They ...
5
votes
1answer
204 views

Debug Log issues in Winter/Summer '16

Lately we have been noticing issues with the Debug Logs. Missing debug lines Sometimes either CODE_UNIT_STARTED or CODE_UNIT_FINISHED goes missing. For example The log shows when a trigger finished ...
5
votes
1answer
669 views

Logs always showing ENTERING_MANAGED_PKG in dev org

I am developing in a namespaced DE org (not packaged yet) and using standard SFDC_DevConsole debug levels (Apex = Debug, System = Debug, DB = Info) with no trace overrides. But all I see in the logs ...
4
votes
1answer
383 views

Debug log - CPU Time limit issue

I have specified the query limit as 210 records for which the CPU time limit shows as 14195ms but the maximum CPU time limit seems to be 10000ms in debug log. Maximum CPU time : 14195 out of 10000 ***...
1
vote
0answers
139 views

Debug Logs Explanation

I'm trying to understand the debug logs Salesforce provides. There are actually two duration(in ms) for every webservice called. One at the top One at the bottom giving up split up method wise The ...
5
votes
1answer
4k views

SOQL: No response from the server error

I have below query to run either in workbench or Developer console, query editor. While on workbench, I get error: UNKNOWN ERROR: Error Fetching http headers and in Developer console error as No ...
2
votes
2answers
351 views

how to debug the child values in parent to child query using for loop

List<Account> accs=[select id,name,Phone, (select id,lastname,firstname,email from contacts) from account]; for(...
2
votes
1answer
72 views

containsNone() behaviour?

I have a string like this bla bla. In my class I have code like this: String str = 'bla bla'; system.debug(str.containsNone(', ')); //debug result FALSE system.debug(str.containsNone(',')); //...
1
vote
0answers
44 views

Any way to save log files of all user per day/week/month in salesforce?

In my company ,there are 50 salesforce licence .some of them are getting some exception while using salesforce apex class programs they are not giving me good information to check where the exceptions ...
3
votes
1answer
954 views

Getting error while trying to use Apex Debugger

We recently purchased APEX debugger feature and when trying to use it from force.com IDE we are getting the following error. "Encountered an error executing remote command Your Salesforce org ...
12
votes
2answers
332 views

DateTime.format() unexpected behavior

Hi I am executing following code snippet and after 26/12/2015, date shifted to one year ahead of expected. Date startDate = Date.parse('12/24/2015'); Date endDate = Date.parse('12/30/2015'); while(...
1
vote
1answer
2k views

Email 2 Case trigger

Trying to setup a trigger to fire on the EmailMessage for Email to case to set a few custom required fields we have on case. I've seen other examples of people using what I have below, but I can't ...
3
votes
2answers
4k views

What is the Log level to see apex debug statements?

What is the Log level that should be set to see user-generated debug statements?
13
votes
9answers
10k views

Delete all in Debug log

Delete all option in Debug log deletes the log page-wise. Is there any option to delete all the logs in debug at an instance?
3
votes
1answer
139 views

Debug logs for Change Set Validation

I can't seem to get debug logs working for Change Set Validation in PROD. I have checked in the regular Debug Logs section and the Developer Console. They don't show up. The debug logs show up for ...
16
votes
1answer
386 views

What is the 'INTERNAL' debug level?

According to Setting Debug Log Filters, the debug levels for each category are as follows: ERROR WARN INFO DEBUG FINE FINER FINEST However, when we create a new User Trace Flag (Setup > Logs > Debug ...
4
votes
0answers
56 views

Debug log Winter '16 release [duplicate]

I have used debug log of previous releases. But the winter '16 release debug log has new terms like Traced Entity and Debug Level. Help for this page does not give much clarity. can you help me out ...
7
votes
2answers
2k views

Is it possible to get current line number in Apex?

I would like to know the current line number, but not by looking in the logs. Like this: System.debug('I am at line ' + currentLine); Where 'currentLine' would be a variable holding the number of ...
0
votes
1answer
14 views

Returning user profile, and debugging

I am not returning the correct profile. I have recently had this working but it isn't now. Am also having issues debugging. The debug line system.debug(userProfileName); gives me an error: ...
3
votes
1answer
70 views

trigger is not working , not updating the record

trigger CompareAndChangeOpportunityOwner on Account (after update) { List<Account> SelectedAccount = [SELECT ID,OwnerID, (SELECT ID,OwnerID FROM Opportunities) FROM Account WHERE Account....
5
votes
3answers
8k views

MAXIMUM DEBUG LOG SIZE REACHED

I am running Apex Tests and I need to see the debug value So I have used debug statements similar to below one: System.debug(Logginglevel.ERROR , ' ::::::: My Debug :::::::::::::') ; Still I am ...
1
vote
1answer
223 views

Remove the new debug levels in salesforce - Winter 16 update

Does anyone know how to remove the new debug levels which are recently released in winter 16 update?
12
votes
2answers
3k views

What is Debug level in new Salesforce Edition?

I wanted to set the debug log to test a class but today after few days when I was trying to set it, I saw its new look and feel in winter'16 release. It asked for event, level etc. I am unable to set ...
1
vote
3answers
355 views

Debug suddenly stops recording debug logs [duplicate]

I am having very very very frustrating problem here. I am coding my app, dumping to debug logs whatever I need and everything works magically. But at some point apex stops printing my debug logs. So i ...
0
votes
1answer
30 views

Debug Log Limits? Can I not reset the available request and watch log as many as I want?

Do I have to create a record under "Monitored Users" when I want to debug something? I didn't have to do this early this year and I was able to monitor as many debug logs as I want. Can I not reset ...
0
votes
2answers
500 views

Salesforce debug logs

I don't see my System.debug() comments in my debugger. I need these to return a response to an API callout response from Marketo. For example, System.debug(res2.getBody()); When I test the code ...
2
votes
1answer
120 views

Time Limit Exceeded Error

I currently have a page that would send email notification to other users including attachments. But if the number of receivers is too many, I would often get an error Time Limit Exceeded. This is ...
0
votes
2answers
76 views

No debug while executing VF page with force.com site

The system does not show me the controller debug log of my VF page. the VF page is viewed with site. and I added a guest user as a monitoring user. Any Idea?
2
votes
2answers
336 views

Why is this Trigger not working

I've a question with this trigger. I checked the register and it launch the trigger but is not doing anything. It doesnt show me the debug messages, even the first one. The idea is that when we are ...
5
votes
1answer
6k views

System.debug not appearing in logs from test method

I have the below test method : static testmethod void addToShoppingCart_Test(){ //Line 128 setup(); //Line 129 oppObj.pricebook2id = customPb1.Id; //Line 130 upsert oppObj; //Line 131 ...
1
vote
2answers
49 views

Debug Filter option which only list System.debug statements?

Is there a way to filter option where ONLY system.debug statements are listed and nothing else?
1
vote
2answers
974 views

Debug log getting truncated [duplicate]

Since there are so many classes and methods called from my class method, the debug log generated is very huge and getting truncated. How can i see the full debug log ? Is there a way through which i ...
3
votes
3answers
765 views

Before Update is being fired twice

I am trying to figure out what is calling my before update twice. Cannot see what is causing this. Background Object: Case Workflow Rules: All disabled PB: All disabled Case Assignment Rules: All ...
0
votes
1answer
679 views

How do I disable debug log when deploying and running tests with ant migration tool?

I am running into an issue where every time I deploy to my org with the ANT tool the output is flooded with unit test debug logs. I have added logType="None" to the build.xml which doesn't help. I ...
0
votes
1answer
29 views

Comment system debug statements without eclipse

I need to delete all system.debug statements in all the apex classes. Is there any method we can mass comment/delete the debug statements in one go?
2
votes
1answer
79 views

Determine whether current user session is a managed package support user session?

Salesforce only shows debug logs from managed packages if you're logged in via the appropriate "grant support access" feature from your licensing org's licensing console. That's okay so far... My ...
1
vote
2answers
100 views

How to check debug log

I guess this is a simple task , but since I haven't worked must on coding would need some help on how to check debug log . Currently my ask is to see if a method is being called and a map is being ...
2
votes
1answer
2k views

deserializing JSON returns a null object

I'm trying to deserialize a JSON response into a list, so that eventually I can iterate through the list and create new contacts from the response. This is my first time working with APIs and JSON, ...
4
votes
3answers
9k views

How to print ALL the elements of a List<>?

I would need to print all the elements of a list so to be able to copy them (CTRL+C) . In Debug Log , I can see only the first 10, or something similar . (a temp solution I'm using is to store them ...
1
vote
1answer
74 views

how i can show debug log user

I want to see debug log in salesforce,but when i go to debug log and click on on user there is no user in look up to select. Any one can help me.