Menu
  • Home
  • Services
    • Implementation Services
    • Support Services
    • Salesforce Support Services on Tap
    • Customization Services
    • Integration Services
    • Consulting Services
    • Product Development with Salesforce
  • Focus Areas
    • Buyer Journey Management
    • Supporting Nonprofits
    • Salesforce Integration Orchestration
    • Employee Management
  • Case Studies
  • Blog
  • Internship
  • Contact
  • COVID 19 & beyond

How To Troubleshoot A Lightning Component?

CategoriesBlog / Salesforce Technology

Admin

October 24, 2017

Lightning components is built on top of javascript framework (Aura framework) so we won’t be able to use apex debuggers to investigate the issue.

Not to worry though 🙂 we have a couple of good tools available in our browser itself.

Debugging lightning components – Client Side Set Up

There are different tools available in browsers using which we can debug lightning components –
Google Chrome – Chrome Developer Tools
Mozilla Firefox – Firefox Developer Tools
Safari – Web Inspector
IE – Developer Tools

How to Debug?

Let’s see how to debug a Hello World lightning component.

Lightning App

 

Lightning App

Lightning Component – demoDebug

 

Lightning Component - demoDebug
demoDebugController.js

 

demoDebugController

There are two ways to debug :

1. Using JavaScript Debugger

This debugger can be used to step through your JavaScript code line by line, you just need to set a breakpoint by writing debugger.
Once your execution hits the breakpoint the code execution gets freezed and will wait for your instructions to move ahead

sc1

2. Using Alerts

    1. Alerts can be used to check whether your code is getting executed as expected or not
    2. Values of variable can also be printed in alerts

sc2

References:
Chrome Developer Tools
Firefox Developer Tools
IE – Developer Tools

Recent Posts

  • Grant Sourcing, Management and Impact Reporting
  • How do you get your alumni to get involved with you on your initiatives?
  • What Information do I need to capture and maintain with respect to my Alumni?
  • What information do I need to capture about my volunteer and why?
  • What information do nonprofits need to capture and maintain of their donors and the donations they give?

Categories

  • Blog
  • Communities
  • Finance
  • General
  • Nonprofit
  • Sales
  • Salesforce Technology
  • Services

Archives

  • February 2022
  • January 2021
  • October 2020
  • September 2020
  • August 2020
  • March 2020
  • February 2020
  • September 2019
  • April 2019
  • February 2019
  • November 2018
  • September 2018
  • August 2018
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
Thinqloud was founded with the vision of helping business grow using Salesforce®.

We do this by driving automation and process management using Salesforce® Technology thereby improving and implementing integrated CRM ,Sales and Marketing processes. Our mature team comprises of IT professionals (Technology and DevOps), Business process consultants and Salesforce® enthusiasts.

Email : sales@thinqloud.com

Services

  • Solution Development Services
  • Salesforce Implementation Services
  • Salesforce Support Services
  • Salesforce Customization Services
  • Salesforce Integration Services
  • Classic to Lightning Migration
  • Salesforce Consulting Services

Site Links

  • Home
  • Blog
  • Case Studies
  • Contact
  • Internship

© 2022 Thinqloud, All Rights Reserved.

  • Privacy