SlideShare a Scribd company logo
Debugging Lightning
Components
Salesforce Saturday
Mohith Shrivastava
Salesforce MVP
CodeScience INC
Blog - cloudyworlds.blogspot.com
Prerequisites
1. You have worked with lightning components and familiar with basics
2. You have basic Understanding of Javascript
3. Visit Trailhead to explore Lightning Components Projects and modules
AGENDA
1. Lightning Inspector
2. Locker Services
3. Lightning CLI
ENABLING DEBUG MODE
LIGHTNING INSPECTOR
Installation Link
CONSOLE SHORTCUT COMMANDS
$auraTemp+""
Returns the component descriptor.
$auraTemp.get("v.attributeName")
Returns the value for the attributeName attribute.
$auraTemp.getElement()
Returns the corresponding DOM element.
inspect($auraTemp.getElement())
Opens the Elements tab and inspects the DOM element for the component.
PERFORMANCE TAB
TRANSACTION TAB
EVENTS LOGGING
1. This tab shows all the events fired. The event graph helps you to understand
the sequence of events and handlers for one or more actions.
2. You can inspect standard and custom application events , component events
3. Use this to inspect the Tree and debug event variables
4. The graph is color coded.
Black—The current event
Maroon—A controller action
ACTION LOGGING
1. Actions are various types like storable,cached,Success,Error,Aborted
2. Actions logging help to see the action responses and override the behaviour to
build more robust error handling
3. You can override the server actions
STORAGE TAB
This tab shows the client-side storage for Lightning applications.
Actions marked as storable are stored in the actions store. Use this tab to analyze
storage in Salesforce1 and Lightning Experience.
LOCKER SERVICE
Prevents
Components from causing XSS and similar security issues
Components from reading other component’s rendered data without any restrictions
Components from calling undocumented/private APIs
Further Reading here
Managed Package Apps going through the security review process has to adhere to security best practices .
Read more about the security best practices for lightning components here
SALESFORCE LIGHTNING CLI
Install Heroku Toolbelt
Install Lightning CLI
Run the heroku lint command
***Heroku lightning:lint path***
REFERENCES
Lightning Components Developer Guide
Repo of all code used for demo
https://github.com/msrivastav13/SalesforceSaturday-22
Register for below webinar coming week for more info around winter 17 lightning
features
https://developer.salesforce.com/events/webinars/BuildAppsFaster
THANK YOU
Organiser - Salesforce Bangalore User
Group (Madan and Kishore)
Twitter - Mohith - @msrivastav13
Madan - @madankhichi

More Related Content

What's hot (20)

PPTX
The anypoint platform for API's
Achyuta Lakshmi
 
PPTX
Mule Integration with Atlassian JIRA
Ramakrishna Narkedamilli
 
PPTX
Internet of things the salesforce lego machine cloud
andyinthecloud
 
PPTX
Angular%201%20to%20angular%202
Ran Wahle
 
PDF
Stateful pattern con Azure Functions
Massimo Bonanni
 
PPTX
Phonegap android angualr material design
Srinadh Kanugala
 
PDF
Using Cookies to Store Your Postman Secrets
Postman
 
PDF
Spring Boot Tutorial | Microservices Spring Boot | Microservices Architecture...
Edureka!
 
PDF
IoT in salsa serverless
Massimo Bonanni
 
PPTX
Serverless patterns v2 public
Yochay Kiriaty
 
PPTX
Mule Integration with Dropbox
Ramakrishna Narkedamilli
 
PPTX
Tips and Tricks for new async web client capabilities on model driven apps
Mehdi El Amri
 
PPTX
Spring boot
Shatrughna Singh
 
PPTX
Lightning Testing Service
Rahul Malhotra
 
PPTX
What is Spring Boot and Why Spring Boot ?
narendrachinnu
 
PPTX
Live session 2 lightning web component
SmritiSharan1
 
PPT
Raml api designer
D.Rajesh Kumar
 
PDF
Everything you always wanted to know about API Management (but were afraid to...
Massimo Bonanni
 
PPTX
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
PDF
Take Action with Forge Triggers
Atlassian
 
The anypoint platform for API's
Achyuta Lakshmi
 
Mule Integration with Atlassian JIRA
Ramakrishna Narkedamilli
 
Internet of things the salesforce lego machine cloud
andyinthecloud
 
Angular%201%20to%20angular%202
Ran Wahle
 
Stateful pattern con Azure Functions
Massimo Bonanni
 
Phonegap android angualr material design
Srinadh Kanugala
 
Using Cookies to Store Your Postman Secrets
Postman
 
Spring Boot Tutorial | Microservices Spring Boot | Microservices Architecture...
Edureka!
 
IoT in salsa serverless
Massimo Bonanni
 
Serverless patterns v2 public
Yochay Kiriaty
 
Mule Integration with Dropbox
Ramakrishna Narkedamilli
 
Tips and Tricks for new async web client capabilities on model driven apps
Mehdi El Amri
 
Spring boot
Shatrughna Singh
 
Lightning Testing Service
Rahul Malhotra
 
What is Spring Boot and Why Spring Boot ?
narendrachinnu
 
Live session 2 lightning web component
SmritiSharan1
 
Raml api designer
D.Rajesh Kumar
 
Everything you always wanted to know about API Management (but were afraid to...
Massimo Bonanni
 
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
Take Action with Forge Triggers
Atlassian
 

Viewers also liked (6)

PDF
Spark: jsFiddle Meets Salesforce Lightning
Scott Covert
 
PPTX
Introduction to lightning out df16
Mohith Shrivastava
 
PPTX
Mission, Vision and Core Values
Gaurav Arya
 
PPTX
Company core-values - english templates
Daniel de Carvalho Luz
 
PPT
Core values
chris271154
 
PPT
Core Values
Don Burdge
 
Spark: jsFiddle Meets Salesforce Lightning
Scott Covert
 
Introduction to lightning out df16
Mohith Shrivastava
 
Mission, Vision and Core Values
Gaurav Arya
 
Company core-values - english templates
Daniel de Carvalho Luz
 
Core values
chris271154
 
Core Values
Don Burdge
 
Ad

Similar to Debugging lightning components (20)

PPTX
Debugging lightning components-SEDreamin17
Mohith Shrivastava
 
PDF
Lightning web components - Episode 4 : Security and Testing
Salesforce Developers
 
PPTX
Lightning Components Introduction
Durgesh Dhoot
 
PDF
Lightning web components - Episode 1 - An Introduction
Salesforce Developers
 
PDF
Easy REST Integrations with Lightning Components and Salesforce1
Salesforce Developers
 
PDF
Lightning Components Explained
Atul Gupta(8X)
 
PPTX
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
Vkrish Peru
 
PPTX
Salesforce.com Lightning
Malinda Lamahewa
 
PDF
Lightning Components: The Future
Salesforce Developers
 
PPTX
Intro to Lightning Components - Dreamforce 2016
Laura Meerkatz
 
PPTX
Build lightning components with salesforce dx
Shashank Srivatsavaya (ShashForce)
 
PPTX
Lightning Developer Week - Bangalore Salesforce Developer Group
Abhilash Kuntar
 
PDF
Building Lightning Components for ISVs (Dreamforce 2015)
Salesforce Partners
 
PDF
Lightning breakout mun world tour 2015 sfsans
Salesforce Deutschland
 
PPTX
Salesforce Lightning workshop Hartford - 12 March
Jitendra Zaa
 
PPTX
Building apps faster with lightning and winter '17
Salesforce Developers
 
PPTX
Building Apps Faster with Lightning and Winter '17
Mark Adcock
 
PPTX
Lightning page optimization & best practices
Gaurav Jain
 
POTX
Building End To End Lightning Apps - Dreamforce 2014
Raja Rao DV
 
PDF
Lightning web components episode 2- work with salesforce data
Salesforce Developers
 
Debugging lightning components-SEDreamin17
Mohith Shrivastava
 
Lightning web components - Episode 4 : Security and Testing
Salesforce Developers
 
Lightning Components Introduction
Durgesh Dhoot
 
Lightning web components - Episode 1 - An Introduction
Salesforce Developers
 
Easy REST Integrations with Lightning Components and Salesforce1
Salesforce Developers
 
Lightning Components Explained
Atul Gupta(8X)
 
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
Vkrish Peru
 
Salesforce.com Lightning
Malinda Lamahewa
 
Lightning Components: The Future
Salesforce Developers
 
Intro to Lightning Components - Dreamforce 2016
Laura Meerkatz
 
Build lightning components with salesforce dx
Shashank Srivatsavaya (ShashForce)
 
Lightning Developer Week - Bangalore Salesforce Developer Group
Abhilash Kuntar
 
Building Lightning Components for ISVs (Dreamforce 2015)
Salesforce Partners
 
Lightning breakout mun world tour 2015 sfsans
Salesforce Deutschland
 
Salesforce Lightning workshop Hartford - 12 March
Jitendra Zaa
 
Building apps faster with lightning and winter '17
Salesforce Developers
 
Building Apps Faster with Lightning and Winter '17
Mark Adcock
 
Lightning page optimization & best practices
Gaurav Jain
 
Building End To End Lightning Apps - Dreamforce 2014
Raja Rao DV
 
Lightning web components episode 2- work with salesforce data
Salesforce Developers
 
Ad

More from Mohith Shrivastava (20)

PDF
Best Practices with Apex in 2022.pdf
Mohith Shrivastava
 
PPTX
Successfully retrieving metadata from salesforce org using packages
Mohith Shrivastava
 
PPTX
Deep dive into salesforce connected app part 4
Mohith Shrivastava
 
PPTX
Successfully creating unlocked package
Mohith Shrivastava
 
PPTX
Implementing Einstein OCR
Mohith Shrivastava
 
PPTX
Deep dive into salesforce connected app - part 2
Mohith Shrivastava
 
PPTX
Deep dive into salesforce connected app part 1
Mohith Shrivastava
 
PPTX
Org dependent salesforce packages
Mohith Shrivastava
 
PPTX
Enhance salesforce application performance using lightning platform cache
Mohith Shrivastava
 
PPTX
Become a rockstar admin
Mohith Shrivastava
 
PPTX
Build your own dev tools with salesforce cli plugin generator
Mohith Shrivastava
 
PPTX
Modular application development using unlocked packages
Mohith Shrivastava
 
PPTX
Introduction to lightning Web Component
Mohith Shrivastava
 
PPTX
Building Apps On Lightning
Mohith Shrivastava
 
PPTX
Modular Salesforce Application Development Using DX
Mohith Shrivastava
 
PPTX
Spring18 Lightning Component Updates
Mohith Shrivastava
 
PPTX
Introduction To Service Cloud Snapins SDK
Mohith Shrivastava
 
PPTX
Introduction to einstein analytics sdk for lightning
Mohith Shrivastava
 
PPTX
Machine learning with salesforce data using prediction io
Mohith Shrivastava
 
PPTX
Introduction to Analytics Cloud
Mohith Shrivastava
 
Best Practices with Apex in 2022.pdf
Mohith Shrivastava
 
Successfully retrieving metadata from salesforce org using packages
Mohith Shrivastava
 
Deep dive into salesforce connected app part 4
Mohith Shrivastava
 
Successfully creating unlocked package
Mohith Shrivastava
 
Implementing Einstein OCR
Mohith Shrivastava
 
Deep dive into salesforce connected app - part 2
Mohith Shrivastava
 
Deep dive into salesforce connected app part 1
Mohith Shrivastava
 
Org dependent salesforce packages
Mohith Shrivastava
 
Enhance salesforce application performance using lightning platform cache
Mohith Shrivastava
 
Become a rockstar admin
Mohith Shrivastava
 
Build your own dev tools with salesforce cli plugin generator
Mohith Shrivastava
 
Modular application development using unlocked packages
Mohith Shrivastava
 
Introduction to lightning Web Component
Mohith Shrivastava
 
Building Apps On Lightning
Mohith Shrivastava
 
Modular Salesforce Application Development Using DX
Mohith Shrivastava
 
Spring18 Lightning Component Updates
Mohith Shrivastava
 
Introduction To Service Cloud Snapins SDK
Mohith Shrivastava
 
Introduction to einstein analytics sdk for lightning
Mohith Shrivastava
 
Machine learning with salesforce data using prediction io
Mohith Shrivastava
 
Introduction to Analytics Cloud
Mohith Shrivastava
 

Recently uploaded (20)

PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 

Debugging lightning components

  • 1. Debugging Lightning Components Salesforce Saturday Mohith Shrivastava Salesforce MVP CodeScience INC Blog - cloudyworlds.blogspot.com
  • 2. Prerequisites 1. You have worked with lightning components and familiar with basics 2. You have basic Understanding of Javascript 3. Visit Trailhead to explore Lightning Components Projects and modules
  • 3. AGENDA 1. Lightning Inspector 2. Locker Services 3. Lightning CLI
  • 6. CONSOLE SHORTCUT COMMANDS $auraTemp+"" Returns the component descriptor. $auraTemp.get("v.attributeName") Returns the value for the attributeName attribute. $auraTemp.getElement() Returns the corresponding DOM element. inspect($auraTemp.getElement()) Opens the Elements tab and inspects the DOM element for the component.
  • 9. EVENTS LOGGING 1. This tab shows all the events fired. The event graph helps you to understand the sequence of events and handlers for one or more actions. 2. You can inspect standard and custom application events , component events 3. Use this to inspect the Tree and debug event variables 4. The graph is color coded. Black—The current event Maroon—A controller action
  • 10. ACTION LOGGING 1. Actions are various types like storable,cached,Success,Error,Aborted 2. Actions logging help to see the action responses and override the behaviour to build more robust error handling 3. You can override the server actions
  • 11. STORAGE TAB This tab shows the client-side storage for Lightning applications. Actions marked as storable are stored in the actions store. Use this tab to analyze storage in Salesforce1 and Lightning Experience.
  • 12. LOCKER SERVICE Prevents Components from causing XSS and similar security issues Components from reading other component’s rendered data without any restrictions Components from calling undocumented/private APIs Further Reading here Managed Package Apps going through the security review process has to adhere to security best practices . Read more about the security best practices for lightning components here
  • 13. SALESFORCE LIGHTNING CLI Install Heroku Toolbelt Install Lightning CLI Run the heroku lint command ***Heroku lightning:lint path***
  • 14. REFERENCES Lightning Components Developer Guide Repo of all code used for demo https://github.com/msrivastav13/SalesforceSaturday-22 Register for below webinar coming week for more info around winter 17 lightning features https://developer.salesforce.com/events/webinars/BuildAppsFaster
  • 15. THANK YOU Organiser - Salesforce Bangalore User Group (Madan and Kishore) Twitter - Mohith - @msrivastav13 Madan - @madankhichi