- 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).

- Implementing VMware Horizon 7(Second Edition)
- Learning RabbitMQ
- Processing互動(dòng)編程藝術(shù)
- Data Analysis with Stata
- 網(wǎng)絡(luò)爬蟲原理與實(shí)踐:基于C#語言
- Advanced Oracle PL/SQL Developer's Guide(Second Edition)
- Getting Started with Laravel 4
- Mastering ROS for Robotics Programming
- Python算法詳解
- OpenCV 4計(jì)算機(jī)視覺項(xiàng)目實(shí)戰(zhàn)(原書第2版)
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Spring Boot 3:入門與應(yīng)用實(shí)戰(zhàn)
- Android開發(fā)權(quán)威指南(第二版)
- PHP程序設(shè)計(jì)經(jīng)典300例
- Python程序設(shè)計(jì)案例教程:從入門到機(jī)器學(xué)習(xí)(微課版)