[Grails] 现阶段如何构建一个舒适的Grails开发环境?
Seraph115
2008-11-24
魔力猫咪 写道 我又仔细查看了Grails的Eclipse设置指南。我觉得可能和我在工程中使用了Groovy插件可能有关系。但是我英文是在是very poor。很多地方看不懂。
引用 Step Debugging with Eclipse You can step debug a Grails application if you install the latest build of the Groovy Eclipse plug-in. Eclipse debugging depends on the class files generated by the Groovy compiler, so make sure 'Disable Groovy Compiler Generating Class Files' is not checked (Project -> Properties -> Groovy Project Properties) and the output folder is set to e.g. "bin-groovy". Then edit the ".classpath" file in your project directory and manually remove the entry for "bin-groovy". To debug an application, do the following: Open up the Groovy file you want to debug (lets say a controller called BookController.groovy) then set a break point on the line you want to stop at. (set a breakpoint by double clicking in the far left "gutter") Now debug the application in the same way as you did in the above section on "Running a Grails application" except with the "Debug" menu. Load your browser and navigate to the action that calls the code. Eclipse should then stop at the appropriate place and you can then inspect variables and step through the code. If you have the Grails source code set-up on your Source path you can step into that code too. 我估计这段应该是关键。但是我完全看不懂。 上文简译: Step Debugging with Eclipse 使用Eclipse步进调试 You can step debug a Grails application if you install the latest build of the Groovy Eclipse plug-in. 如果你安装了最新版的Eclipse的Groovy插件,就可以步进调试一个Grails应用。 Eclipse debugging depends on the class files generated by the Groovy compiler, so make sure 'Disable Groovy Compiler Generating Class Files' is not checked (Project -> Properties -> Groovy Project Properties) and the output folder is set to e.g. "bin-groovy". Then edit the ".classpath" file in your project directory and manually remove the entry for "bin-groovy". Eclipse的调试依赖于Groovy编译器自动生成的class文件,所以需确定'Disable Groovy Compiler Generating Class Files(关闭Groovy编译器自动编译class文件)'选项未被钩选(Project -> Properties -> Groovy Project Properties)且输出文件夹被设置例如"bin-groovy"。然后编辑你的工程目录下的".classpath"文件并手动将其路径移至"bin-groovy"。 To debug an application, do the following: 遵照以下步骤,来调试一个应用: Open up the Groovy file you want to debug (lets say a controller called BookController.groovy) then set a break point on the line you want to stop at. (set a breakpoint by double clicking in the far left "gutter") Now debug the application in the same way as you did in the above section on "Running a Grails application" except with the "Debug" menu. 打开你要调试的Groovy文件(假设将一个controller称作BookController.groovy文件)然后在你想暂停的行上设置一个断点。(在行左双击可设置一个断点)现在只要以同样的方式在"Debug"菜单的"Running a Grails application"项上调试你的应用。 Load your browser and navigate to the action that calls the code. 运行你的浏览器并通过action来调用代码。 Eclipse should then stop at the appropriate place and you can then inspect variables and step through the code. If you have the Grails source code set-up on your Source path you can step into that code too. Eclipse将会停在相应的位置并且你可以查看变量和步进代码。如果你有Grails的源码并设置到你的Source(源代码)路径下你也可以单步调试它。 |
|
copoplar
2008-12-01
本人:editplus+cmd
感觉很舒服。 最近开始留意Idea,看能否适应。 |
|
eric
2008-12-02
现在最新的插件版本是哪个?支持的eclipse是哪个版的呢?
一直用eclipse,不想换IDE |
|
SSailYang
2008-12-02
NetBeans 也可以
|
|
quiii
2008-12-03
C:\Documents and Settings\猫咪
|
|
quiii
2008-12-03
netbean 6.5 RC2 now available
|
|
laitaogood
2008-12-05
我用netbeans,呵呵,很强大
|
|
tongyi121
2009-01-15
sun对groovy的支持还是不够,netbeans整了这么久还是一堆问题,最重要的后台单步调试功能也没整出了,失望呀!IDEA真的很强大,不愧为卖6000大洋的东西。
|
|
tail
2009-02-07
我在用idea8,支持断点
netbean6.5还可以,不支持断点 eclipse3.4 经常出错,放弃使用 |
相关讨论
相关资源推荐
- europython2009excel
- europython2015
- EuroPython2015:EuroPython 2015教程的材料
- 更快的python -- EuroPython 2016讲座笔记
- EuroPython2015Training:EuroPython 2015培训实验室
- awesome-europython2015:europython2015的材料
- europython2015_logging
- EuroPython-2018-Conference-Talk-Videos:直接跳到特定话题!
- europython:密码学实例
- unleash_cpp:EuroPython 2019讲座