带有调试信息的 Eclipse RCP 程序
我写了一个RCP程序。在我的底层插件中的某个地方有一个 NullPointerException。我得到了堆栈跟踪和所有内容,但代码似乎不是用其中的调试信息生成的,因为我没有得到行信息:
at com.ktec.bla1.handler.Handler.performChangesQuery(Unknown Source)
at com.ktec.bla1.handler.Handler.execute(Unknown Source)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
行添加
我已将javacDebugInfo=true
到我能找到的所有 build.properties 中。甚至我的插件项目中生成的 build.xml 文件也包含属性
但仍然......我的代码仍然在堆栈跟踪中显示“未知来源”。 任何想法都会受到高度赞赏。
干杯, 凯
I have written an RCP program. Somewhere in my underlying plug-in there is a NullPointerException. I get the stack trace and everything, but the code doesn't seem to be generated with debug info in it because I don't get the line info:
at com.ktec.bla1.handler.Handler.performChangesQuery(Unknown Source)
at com.ktec.bla1.handler.Handler.execute(Unknown Source)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
I have added the line
javacDebugInfo=true
to all build.properties I could find. Even the generated build.xml file in my plug-in project contains the property
<property name="javacDebugInfo" value="on"/>
but still... my code still shows up with "unknown source" in the stack trace.
Any idea is highly appreciated.
Cheers,
Kai
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我曾经遇到过同样的问题,我也尝试过设置 javacDebugInfo=true 但它不起作用,我通过设置compilerArg来包含调试信息来解决它。对于 Sun JDK 编译器(1.5),它是 -g (检查你的编译器参数是否包含调试信息)。
对于 Sun JDK 编译器,您可以将此行添加到您的 build.properties 中
I used to have the same issue, I have also tried to set javacDebugInfo=true but it did not work, I resolved it by setting compilerArg to contain debug information. For Sun JDK compiler(1.5) that was -g (check yours compiler argument for including debug information).
For Sun JDK compiler you can add this line to yours build.properties