{"id":149,"date":"2013-07-08T17:18:26","date_gmt":"2013-07-08T11:48:26","guid":{"rendered":"https:\/\/www.dhruvsoft.com\/blog\/?p=149"},"modified":"2025-06-09T14:57:55","modified_gmt":"2025-06-09T09:27:55","slug":"how-to-use-debug-logs-in-salesforce-to-troubleshoot","status":"publish","type":"post","link":"https:\/\/www.dhruvsoft.com\/blog\/how-to-use-debug-logs-in-salesforce-to-troubleshoot\/","title":{"rendered":"How to Use Debug Logs in Salesforce to Troubleshoot"},"content":{"rendered":"<p>This article will show you how you can use &#8220;Debug Logs&#8221; in Salesforce.com to Troubleshoot?<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-left-text counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.dhruvsoft.com\/blog\/how-to-use-debug-logs-in-salesforce-to-troubleshoot\/#What_isA_Debug_Log_in_Salesforcecom\" >What is\u00c2\u00a0Debug Log in Salesforce.com?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.dhruvsoft.com\/blog\/how-to-use-debug-logs-in-salesforce-to-troubleshoot\/#Add_users_to_the_debug_log\" >Add users to the debug log<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.dhruvsoft.com\/blog\/how-to-use-debug-logs-in-salesforce-to-troubleshoot\/#What_information_is_monitored_by_Salesforcecom_Debug_Logs\" >What information is monitored by Salesforce.com Debug Logs?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.dhruvsoft.com\/blog\/how-to-use-debug-logs-in-salesforce-to-troubleshoot\/#What_are_Debug_log_Filters_in_Salesforcecom\" >What are Debug log Filters in Salesforce.com?<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"What_isA_Debug_Log_in_Salesforcecom\"><\/span>What is\u00c2\u00a0Debug Log in Salesforce.com?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>A debug log records data base operations, system process, and errors that occur when executing a transaction or while running unit tests. We can monitor specific users in Debug log by adding them to list of Monitored Users.<!--more--><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Add_users_to_the_debug_log\"><\/span>Add users to the debug log<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-150 size-full\" title=\"Debug Log in Salesforce\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002.jpg\" alt=\"Debug Log in Salesforce\" width=\"217\" height=\"433\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002.jpg 217w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002-150x300.jpg 150w\" sizes=\"auto, (max-width: 217px) 100vw, 217px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image004.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-151 size-full\" title=\"Salesforce debug logs\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image004.gif\" alt=\"Salesforce debug logs\" width=\"623\" height=\"294\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image006.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-152 size-full\" title=\"Selecting User for Debug Log\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image006.gif\" alt=\"Selecting User for Debug Log\" width=\"623\" height=\"275\" \/><\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"What_information_is_monitored_by_Salesforcecom_Debug_Logs\"><\/span>What information is monitored by Salesforce.com Debug Logs?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Debug log can contain information about<\/p>\n<ul>\n<li>Database changes<\/li>\n<li>HTTP callouts<\/li>\n<li>Apex errors<\/li>\n<li>Resources used by Apex<\/li>\n<li>Automated workflow process, such as :\n<ul>\n<li>Workflow rules<\/li>\n<li>Assignment rules<\/li>\n<li>Approval processes<\/li>\n<li>Validation rules<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"What_are_Debug_log_Filters_in_Salesforcecom\"><\/span>What are Debug log Filters in Salesforce.com?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>When using a Developer Console or monitoring a debug log, you can specify the level of information that gets included in the log.<\/p>\n<ul>\n<li>Log Category<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\">The type of information logged, such as<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Database<\/li>\n<li>Workflow<\/li>\n<li>Validation<\/li>\n<li>Callout<\/li>\n<li>Apex code<\/li>\n<li>Visualforce<\/li>\n<li>system<\/li>\n<\/ul>\n<\/li>\n<li>Log Level<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\">The amount of information logged. Logging levels determine how much request information is saved in a debug log. You can specify the following log levels<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>ERROR<\/li>\n<li>WARN<\/li>\n<li>INFO<\/li>\n<li>DEBUG<\/li>\n<li>FINE<\/li>\n<li>FINER<\/li>\n<li>FINEST<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Sample debug log in Salesforce.com<\/p>\n<p>Here us a sample of Debug log in SFDC<\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image008.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-153 size-full\" title=\"Debug Log in SFDC\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image008.gif\" alt=\"Debug Log in SFDC\" width=\"623\" height=\"346\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image010.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-154 size-full\" title=\"Sample Debug Log\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image010.gif\" alt=\"Sample Debug Log\" width=\"625\" height=\"368\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will show you how you can use &#8220;Debug Logs&#8221; in Salesforce.com to Troubleshoot? What is\u00c2\u00a0Debug Log in Salesforce.com? A debug log records data base operations, system process, and errors that occur when executing a transaction or while running unit tests. We can monitor specific users in Debug log by adding them to list [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[88,87,77],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-apex","tag-salesforce-development","tag-salesforce-programming","tag-salesforce-com-debug-logs","entry"],"_links":{"self":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":0,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}