---
title: "Netbeans调试Grails应用"
author: "allenwc"
date: "2009-08-18T22:49:01Z"
tags: ["Blog", "Google", "Grails", "Netbeans"]
slug: "netbeans-grails"
draft: false
lastmod: "2009-08-18T22:51:51Z"
id: 452356
url: "https://allenwc.iteye.com/blog/452356"
---

一直以来一直都是用netbeans开发Grails的应用，netbeans的进步是有目共睹的，但是一直不知道怎么用NB进行Grails的调试。今天实在是受不了没有debug的日子了，于是上网google了下，老外的blog里有记载，在这标记下。

      1、在命令行下进入项目所在的根路径

     2、运行命令“**grails-debug run-app”**

   **3**、在netbeans中设置连接调试器，设置端口为5005

   4、设置断点开始调试吧