Eclipse是否允许在xml文件上找到断点? [英] Does Eclipse allow find breakpoint on xml file?

查看:370
本文介绍了Eclipse是否允许在xml文件上找到断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含许多配置xml文件的项目。
是否可以在Eclipse调试器中放置某种断点,以便我可以发现是否已读取xml文件的某些节点(并且还需要类名)?
谢谢。

I have a project with many configuration xml files. Is possible in Eclipse debugger put some kind of breakpoint so I can found if some node of xml file was read (and also need name of class) or not? Thanks.

推荐答案

那么您有2个选项AFAICS:

Well you have 2 options AFAICS:


  1. 如果项目使用JAXB或Castor或其他形式的XML编组到Java对象中,那么您要做的就是查看与XML文件匹配的Java类,找到为要断点/调试的xml标记计算类/方法,并调试相应的Java代码。

  1. If the project uses JAXB or Castor or some other form of XML marshalling into Java objects, all you have to do is look into the Java classes that match your XML files, find the mathcing class/method for the xml tag you want to breakpoint/debug, and debug the corresponding Java code.

使用 http://www.oxygenxml.com/eclipse_plugin.html ,用于Eclipse的Oxiegen XML插件。

Use http://www.oxygenxml.com/eclipse_plugin.html", Oxiegen XML Plugin for Eclipse.

这篇关于Eclipse是否允许在xml文件上找到断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆