- Mastering Application Development with Force.com
- Kevin J. Poorman
- 138字
- 2021-07-23 14:33:50
Developer console exercises
We'll be using the developer console throughout this book, so it is necessary that you become familiar with it. The following are some exercises to help you familiarize with the consoles development features:
- Create a class: Using the developer console, create a new class and give it the name
DevConsoleExample
. Ensure that the class compiles without errors. - Run a SOQL query: Run a SOQL query from the query editor, that finds all the opportunities that are on the closed/won stage.
- Execute anonymous: Run the following code block in execute anonymous window:
System.assert(1, (1/0), 'should throw an assertion error');
- Log viewing: Having run that snippet of Apex in the developer console, navigate to the Logs tab and open the raw log option of its execution. Does the code throw assertion exception or division by 0 exception?
推薦閱讀
- Oracle從入門到精通(第3版)
- 深度實踐OpenStack:基于Python的OpenStack組件開發(fā)
- HTML5移動Web開發(fā)技術(shù)
- Learning ArcGIS Pro 2
- OpenNI Cookbook
- Python Tools for Visual Studio
- Mastering OpenCV 4
- Learn Programming in Python with Cody Jackson
- Visual C++串口通信技術(shù)詳解(第2版)
- Spring Boot Cookbook
- 組態(tài)軟件技術(shù)與應(yīng)用
- 深入理解Android:Wi-Fi、NFC和GPS卷
- OpenResty完全開發(fā)指南:構(gòu)建百萬級別并發(fā)的Web應(yīng)用
- 計算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)
- QGIS 2 Cookbook