CRT-450 practice question 19 of 30

What should a developer use to fix a Lightning web component bug in a sandbox?

Full set: 201 questions
Answer options
A: Developer Console
B: Force.com IDE
C: Execute Anonymous
D: VS Code Correct answer
Correct Answer:
D. VS Code
Explanation

Visual Studio (VS) Code, when used with the Salesforce Extension Pack, is the officially recommended and modern integrated development environment (IDE) for Salesforce. It provides comprehensive tools specifically designed for creating, editing, and debugging Lightning Web Components (LWC). Developers can directly edit the component's source files (HTML, JavaScript, CSS), utilize client-side JavaScript debugging to set breakpoints and inspect variables, and deploy fixes to a sandbox using the integrated Salesforce CLI. This makes it the standard and most effective tool for resolving LWC bugs.

References

1. Salesforce

Lightning Web Components Developer Guide: In the "Set Up Your Development Environment" section

the documentation explicitly states

"To create Lightning web components

use a code editor. We recommend Visual Studio Code with the Salesforce Extension Pack." This establishes VS Code as the primary tool. (Reference: Lightning Web Components Developer Guide

Chapter: "Set Up Your Development Environment").

2. Salesforce

Salesforce Extensions for Visual Studio Code Documentation: This documentation details the features that make VS Code the correct choice

including "commands for working with orgs

" "creating Lightning web components

" and "interactive Apex debugging." (Reference: Salesforce Extensions for Visual Studio Code

"Features" section).

3. Salesforce

Developer Console Documentation: The official documentation for the Developer Console lists its capabilities for editing Apex classes

Visualforce pages

and Aura components

but makes no mention of editing or creating Lightning Web Components

confirming its unsuitability for this task. (Reference: Salesforce Classic Developer Guide

Section: "Developer Console Functionality").

4. Salesforce

Force.com IDE Retirement Announcement: Salesforce officially announced the retirement of the Force.com IDE

stating that development efforts are focused on Salesforce Extensions for VS Code. (Reference: Salesforce Developers Blog

Article: "Force.com IDE Retirement

" April 27

2021).

Scroll to Top