简体   繁体   English

如何在IntelliJ IDEA中调试OFBiz

[英]How to debug OFBiz in IntelliJ IDEA

I have try to debug OFBiz in IntelliJ IDEA. 我已经尝试在IntelliJ IDEA中调试OFBiz。 But I couldn't find any particular document for that. 但是我找不到任何特定的文档。 So first I try to configure debugging OFBiz in Eclipse and then try to debug OFBiz in IntelliJ with same configuration. 因此,首先我尝试在Eclipse中配置调试OFBiz,然后尝试使用相同的配置在IntelliJ中调试OFBiz。 It's working with Eclipse but it did not work with IntelliJ. 它可以在Eclipse上运行,但不能与IntelliJ一起使用。

What I have Done: Run > Edit Configuration 我所做的:运行>编辑配置

Then select Application 然后选择应用

Configuration option: 配置选项:

Main class: org.ofbiz.base.start.Start 主类: org.ofbiz.base.start.Start

VM option: -Xms128M -Xmx512M VM选项: -Xms128M -Xmx512M

Working directory: (path of the OFBiz project) 工作目录: (OFBiz项目的路径)

Use classpath of module: Project directory (ie ofbiz) 使用模块的类路径:项目目录(即ofbiz)

What should be the right configuration for debugging OFBiz in IntelliJ. 什么是在IntelliJ中调试OFBiz的正确配置。 If anyone can provide a link(where this is documented) then it also will be helpful. 如果任何人都可以提供链接(在此有文档记录),这也将有所帮助。

Run/Debug Configurations -> Add New Configuration -> Jar Application -> Then you should set Path to ofbiz.jar and working directory 运行/调试配置->添加新配置-> Jar应用程序->然后,您应该将路径设置为ofbiz.jar和工作目录

For me it works good 对我来说效果很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM