- 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?
推薦閱讀
- PostgreSQL Cookbook
- Instant Typeahead.js
- C語言從入門到精通(第4版)
- Android 應用案例開發(fā)大全(第3版)
- Java EE 8 Application Development
- Node.js:來一打 C++ 擴展
- 0 bug:C/C++商用工程之道
- 移動增值應用開發(fā)技術導論
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- 人工智能算法(卷1):基礎算法
- JavaScript程序設計:基礎·PHP·XML
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Secret Recipes of the Python Ninja
- Visual C++開發(fā)寶典
- Spring MVC Cookbook