简体   繁体   English

Eclipse - 如何在不自动重建的情况下启动远程调试

[英]Eclipse - how to start remote debugging without automatically rebuilding

[using Eclipse 3.6 and Preferances -> Workspace -> build automatically is disabled] [使用Eclipse 3.6和Preferances - >工作区 - >自动构建被禁用]

I have a project setup that includes a number of scripted steps for generating autogen code (jaxb, etc). 我有一个项目设置,包括许多脚本步骤,用于生成自动代码(jaxb等)。 It also automatically produces and deploys (does not start) my jars to a remote server. 它还会自动生成和部署(不启动)我的jar到远程服务器。 Unfortunatly this whole process can take upwards of 2 minutes. 不幸的是,整个过程可能需要2分钟。

Recently I've been remotely debugging one project by starting it on the remote server with a manual script that enables remote debugging then attaching to the remote debugging session with eclipse. 最近我一直在远程调试一个项目,在远程服务器上启动它,手动脚本启用远程调试,然后通过eclipse附加到远程调试会话。 My problem is that even if I have not made any source changes, eclipse performs a rebuild when I start the remote debugging session. 我的问题是,即使我没有进行任何源更改,当我启动远程调试会话时,eclipse会执行重建。 This is really annoying. 这真的很烦人。 Does anyone know how to start Eclipse's remote debugging without automatically performing a rebuild? 有没有人知道如何在不自动执行重建的情况下启动Eclipse的远程调试?

You probably have figured this out, but for sake of future reference, to accomplish this: 您可能已经想到了这一点,但为了将来参考,要完成此任务:

Window > Preferences > Run/Debug > Launching. 窗口>首选项>运行/调试>启动。 Uncheck build(if required) before launching. 在启动之前取消选中构建(如果需要)。

Did you try this: 你试过这个:

  • On "Project" menu, uncheck the "Build Automatically" 在“项目”菜单上,取消选中“自动构建”

The down side is that now you'll have to invoke "Build" manually each time you need. 不利的一面是,现在您每次需要时都必须手动调用“Build”。

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

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