Apex language learning (a) development environment

1, registered salesforce developers https://developer.salesforce.com /

2, developers log on https://login.salesforce.com/

3, Apex Developer Tools

(1) Force.com Developer Console (Developer Console)

(2)Eclipse For Salesforce

(3)Visual Studio Code For Salesforce

(4) Force.com IDE

Note: We will execute the code using the Developer Console throughout the tutorial, because it is simple and user-friendly and conducive to learning.

4. Developer Console Developer Console

(1) developer after logging into the management page

(2) into the Developer Console, open the developer console

(3) Developers Console

 

The following are some actions you can use the Developer Console to perform:

  • Write and compile code - You can use the source code editor to write code. When saving class or trigger, the code is automatically compiled. We will report any compilation errors.
  • Debugging - You can view the debug log and checkpoint useful in debugging.
  • Test - you can test for tissue specific class or all classes perform the test, and you can view the test results. Also, you can check the code coverage.
  • Check the performance - You can check the debug log to find performance bottlenecks.
  • SOQL query - you can query the data in the organization, and use the Query Editor to view the results.
  • Color coding and automatically - Source Editor color scheme is used to facilitate the readability of the code elements, and the class and method names autocomplete

5, an example of Hello World

(1) Open Anonymous execute the code window (shortcut Ctrol-E)

(2) writing code

 

(3) execution of the code

 

(4) view the execution results

After the code execution log open window, the input filter conditions USER window below, shows the log information needed by the user.

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/drink186/p/10966390.html