- Implementing Domain:Specific Languages with Xtext and Xtend
- Lorenzo Bettini
- 210字
- 2021-08-13 16:26:19
Debugging Xtend code
The Java code generated by Xtend is clean and easy to debug. However, it is also possible to debug Xtend code directly (instead of the generated Java), thanks to the complete integration of Xtend with the Eclipse JDT debugger.
This means that you can start debugging a Java application that at some point invokes Java code that has been generated by Xtend and, stepping through that, automatically brings you to debugging the original Xtend source. The next screenshot shows a debugging session of Xtend code. Note that all the JDT debugger views are available; furthermore, implicit variables such as it
can be inspected in the Variables view:

You can also debug an Xtend file (for example, containing a main
method) directly, since all the Run and Debug configuration launches are available for Xtend files as well. Breakpoints can be inserted in an Xtend file by double-clicking on the breakpoint ruler in the editor (currently, the Debug context menu is not available for Xtend files).
If, for any reason, while debugging Xtend code you need to debug the generated Java code, you can do so by right-clicking on the Debug view on an element corresponding to an Xtend file line and selecting Show Source (refer the following screenshot).

- Java程序設計實戰教程
- 假如C語言是我發明的:講給孩子聽的大師編程課
- Instant QlikView 11 Application Development
- Raspberry Pi 2 Server Essentials
- Python完全自學教程
- ASP.NET程序設計教程
- 深入分布式緩存:從原理到實踐
- JavaScript腳本特效編程給力起飛
- Regression Analysis with Python
- 大話Java:程序設計從入門到精通
- 深度學習程序設計實戰
- Microsoft Dynamics GP 2013 Cookbook
- 計算機應用基礎
- AngularJS Web Application Development Cookbook
- HTML 5與CSS 3權威指南(第4版·上冊)