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

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

主站蜘蛛池模板: 伊宁县| 米易县| 临猗县| 新丰县| 昌图县| 安仁县| 敦煌市| 响水县| 华阴市| 长岭县| 南城县| 和顺县| 建德市| 炉霍县| 威宁| 津市市| 白河县| 墨竹工卡县| 万山特区| 当涂县| 洛南县| 大方县| 井冈山市| 永州市| 唐海县| 盱眙县| 巴马| 全州县| 白玉县| 宕昌县| 大兴区| 张家港市| 库尔勒市| 辰溪县| 远安县| 温泉县| 台北市| 清徐县| 合江县| 若尔盖县| 大石桥市|