有没有可以基于远程JNLP文件快速建立本地项目进行即时调试的Java IDE?

发布于 2024-10-19 16:47:02 字数 263 浏览 6 评论 0原文

给定一个可以工作的远程 JNLP(所有 jar 都可用等),但您需要在代码上运行调试会话。

是否有任何工具可以轻松地允许您在任何相当现代的 IDE 中创建本地项目,该项目由 JNLP 中声明的资源的本地副本组成,并且可以在调试模式下运行所述代码?假设反编译器可用,因此只需让调试会话运行即可。

是否有任何 IDE(Eclipse、Netbeans、IntelliJ、JDeveloper 等 - 甚至是商业产品)可以在给定 JNLP URL 的情况下实现此目的?

Given a remote JNLP which works (all jars are available etc) but you need to run a debug session on the code.

Is there any facility that easily allows you to create a local project in ANY reasonably modern IDE which consists of a local copy of the resources stated in the JNLP and can run said code in debug mode? Assume that a decompiler is available so it is just a matter of getting the debug session running.

Are there any IDE's (Eclipse, Netbeans, IntelliJ, JDeveloper, etc. etc. - even a commercial offering) which can do this just given the JNLP URL?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

|煩躁 2024-10-26 16:47:02

我在 Eclipse 中有一个预定义的项目,除了解析 JNLP 文件并下载 jnlp 代码库中指定的所有 jar 的实用程序之外,该项目是空白的。或者,您可以使用要在此处测试的更新代码替换任何 jar。它使用反射将所有 jar 添加到类路径(这是一种 hack),然后使用任何参数反射调用在 JNLP 中指定为主类的类的 main 方法。

不幸的是,我无法分享其源代码,但我只花了一天的时间就让它运行起来。

类路径 hack 可以在这里找到:如何在运行时动态加载 Jars ?

应该可以很好地进行任何调试。

I have a pre-defined project in Eclipse which is blank except for a utility that parses a JNLP file and downloads all the jars specified in the jnlp codebase. Optionally, you can replace any jars with updated code you want to test here. It uses reflection to add all the jars to the classpath (which is a hack) and then reflectivly invokes the main method of the class specified as the main-class in the JNLP with any arguments.

Unfortunately I can't share the source for this but it only took me a day to get it running.

The class path hack is available here: How should I load Jars dynamically at runtime?

Should work well with any debugging.

红颜悴 2024-10-26 16:47:02

我在 JNLP 程序中面临类似的问题。我发现调试程序的唯一方法是调试到 Eclipse(我有项目和代码源)并将参数选项卡中 JNLP 文件传递​​的所有参数复制粘贴到 Eclipse 中的调试配置中。我不知道这是否相关,因为我的问题来自通过 JNLP 文件传递​​给应用程序的参数。

我不明白一些事情...为什么要直接从最终位置调试编译后的代码?

I am facing a similar problem with a JNLP program. The only way I found to debug the program is by debugging into Eclipse (I have the project and the code source) and copy-pasting all parameters passed by the JNLP file in the Arguments tab into Debug configuration in Eclipse. I don't know if this is related because my problem came from the arguments passed to the application through JNLP file.

I don't understand something... Why you want to debug directly on the compiled code from the final location?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文