- Scientific Computing with Scala
- Vytautas Jan?auskas
- 139字
- 2021-07-16 11:07:24
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.
推薦閱讀
- 觸·心:DT時代的大數據精準營銷
- Dynamics 365 Application Development
- Android Studio Essentials
- Python自動化運維快速入門
- AutoCAD VBA參數化繪圖程序開發與實戰編碼
- OpenStack Orchestration
- Rust游戲開發實戰
- Clojure for Java Developers
- 新印象:解構UI界面設計
- Python青少年趣味編程
- Learning Grunt
- Cinder:Begin Creative Coding
- 前端程序員面試筆試真題與解析
- JavaScript+jQuery交互式Web前端開發(第2版)
- iOS程序員面試筆試真題與解析