- 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.
推薦閱讀
- LabVIEW Graphical Programming Cookbook
- PyTorch自然語言處理入門與實戰
- Learning SAP Analytics Cloud
- Neo4j Essentials
- Scala程序員面試算法寶典
- Python語言實用教程
- Scala Data Analysis Cookbook
- Flowable流程引擎實戰
- 汽車人機交互界面整合設計
- Learning Android Application Testing
- 零基礎C#學習筆記
- Shopify Application Development
- Java程序設計(項目教學版)
- AngularJS by Example
- Programming MapReduce with Scalding