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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Well you have 2 options AFAICS:
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.
Use http://www.oxygenxml.com/eclipse_plugin.html", Oxiegen XML Plugin for Eclipse.