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

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

主站蜘蛛池模板: 阳城县| 龙游县| 九寨沟县| 翁源县| 科技| 文水县| 连平县| 雷州市| 托克托县| 长子县| 新源县| 盈江县| 邳州市| 灵寿县| 云南省| 赣榆县| 青龙| 邛崃市| 米泉市| 灵宝市| 甘肃省| 衡阳市| 蕲春县| 晴隆县| 上饶市| 林芝县| 山西省| 汶川县| 铜川市| 安图县| 桦甸市| 西峡县| 松潘县| 镇平县| 双鸭山市| 象州县| 托克逊县| 洛宁县| 梁山县| 崇左市| 大渡口区|