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

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.

主站蜘蛛池模板: 徐汇区| 南京市| 黎川县| 深水埗区| 彰武县| 根河市| 米易县| 惠安县| 霍林郭勒市| 南漳县| 广平县| 双桥区| 海兴县| 安陆市| 临夏县| 新野县| 上林县| 长武县| 闽侯县| 察隅县| 平山县| 德兴市| 茌平县| 濉溪县| 兴山县| 溧水县| 西城区| 怀安县| 阜康市| 金昌市| 东明县| 进贤县| 定安县| 凌云县| 永定县| 法库县| 司法| 兴义市| 云霄县| 库车县| 苍山县|