官术网_书友最值得收藏!

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?
主站蜘蛛池模板: 石泉县| 丰宁| 平潭县| 陇西县| 夏河县| 顺义区| 昌乐县| 云霄县| 秭归县| 拉萨市| 洪洞县| 满洲里市| 调兵山市| 嫩江县| 吉水县| 卢湾区| 临江市| 鄂温| 济源市| 古蔺县| 湖南省| 衡阳市| 巨鹿县| 财经| 武宣县| 德州市| 穆棱市| 陇南市| 都昌县| 扎赉特旗| 日喀则市| 长汀县| 万州区| 唐山市| 太保市| 静安区| 长沙市| 宜兰市| 凤凰县| 冕宁县| 稻城县|