- 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?
推薦閱讀
- 匯編語言程序設計(第2版)
- BIM概論及Revit精講
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- C語言程序設計上機指導與習題解答(第2版)
- 深度學習:Java語言實現
- LabVIEW虛擬儀器入門與測控應用100例
- Visual Basic程序設計習題與上機實踐
- Buildbox 2.x Game Development
- Programming Microsoft Dynamics? NAV 2015
- Photoshop智能手機APP界面設計
- scikit-learn Cookbook(Second Edition)
- Flink核心技術:源碼剖析與特性開發
- Parallel Programming with Python
- Django 3 Web Development Cookbook
- Access 2016數據庫應用與開發:實戰從入門到精通(視頻教學版)