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

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?
主站蜘蛛池模板: 明星| 广州市| 玉溪市| 永新县| 益阳市| 宁化县| 阿克| 和硕县| 鄯善县| 崇州市| 来安县| 冕宁县| 宜丰县| 鄯善县| 绥滨县| 应用必备| 新野县| 金寨县| 高淳县| 乐业县| 西畴县| 涿州市| 临泽县| 繁峙县| 保亭| 浮山县| 贵阳市| 南郑县| 东方市| 清镇市| 孙吴县| 万全县| 上饶县| 玉林市| 舟山市| 奇台县| 紫云| 敦煌市| 长沙县| 远安县| 南昌县|