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

Debugging Scala code

Using a dedicated debugger (rather than a bunch of println statements) is sometimes the best way of figuring out where you went wrong when writing your program. Debugging is easy when using ENSIME. You can start the debugger with C-c C-d d, set a breakpoint on a line that the cursor is on with C-c C-d b, or remove a breakpoint with C-c C-d u. After you set up your breakpoints, you can start debugging with C-c C-d r. After your program stops at a breakpoint, you can use C-c C-d n to step to the next line and C-c C-d i to inspect the value of the symbol under the cursor. You can use C-c C-d t to show the current backtrace. Consult the ENSIME Emacs command reference for a few other important debugger features.

主站蜘蛛池模板: 大田县| 枞阳县| 彭水| 盐津县| 勐海县| 景德镇市| 绥阳县| 陆川县| 巩义市| 启东市| 涞源县| 离岛区| 龙陵县| 古田县| 牙克石市| 长丰县| 平遥县| 大姚县| 江都市| 富平县| 乌拉特中旗| 侯马市| 高唐县| 乡宁县| 江山市| 锦屏县| 朔州市| 定陶县| 华蓥市| 额济纳旗| 诏安县| 郁南县| 西藏| 锦州市| 烟台市| 临沂市| 古浪县| 玛多县| 耿马| 于田县| 马关县|