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

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?
主站蜘蛛池模板: 昌吉市| 封开县| 漠河县| 洪雅县| 乌兰浩特市| 镇雄县| 大姚县| 扎囊县| 额济纳旗| 石城县| 梁山县| 砀山县| 临沭县| 新沂市| 乳山市| 井陉县| 景泰县| 青州市| 闸北区| 太谷县| 白玉县| 应城市| 临海市| 海晏县| 德昌县| 南京市| 嘉祥县| 伊通| 清新县| 武乡县| 彝良县| 阿图什市| 许昌市| 潼关县| 故城县| 封丘县| 策勒县| 即墨市| 方城县| 天门市| 拉萨市|