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

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.

主站蜘蛛池模板: 石狮市| 宝兴县| 永州市| 大厂| 额尔古纳市| 德保县| 平利县| 萍乡市| 万州区| 崇阳县| 来安县| 历史| 武山县| 恭城| 中江县| 长泰县| 垣曲县| 丰顺县| 五原县| 邵阳市| 肇源县| 广元市| 伊宁县| 朝阳区| 阳江市| 赣榆县| 武山县| 唐河县| 乳源| 米泉市| 葫芦岛市| 莎车县| 淮安市| 平原县| 竹北市| 扎囊县| 贡山| 晋城| 南京市| 商水县| 当阳市|