Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug grails command

When I run dbm-generate-changelog exception is thrown. I would like to debug this script but I can't figure how to do it. I tried to put breakpoint to the script file _DatabaseMigrationCommon.groovy and then in eclipse created new "debug configuraion" command. When I run this none of breakpoints suspend the execution. I also tried with --debug argument.

setup:
Grails: 2.3.3
GGTS: 3.4
Eclipse: 4.3
like image 900
svobol13 Avatar asked Nov 24 '13 21:11

svobol13


Video Answer


2 Answers

Do the following:

  1. launch grails with the -debug option

    grails -debug run-app
    
  2. create Remote Java Application debug configuration in Eclipse and set port to 5005

  3. enjoy breakpoints and step-by-step debugging

like image 86
fabiangebert Avatar answered Oct 08 '22 04:10

fabiangebert


Try to use dbm-generate-changelog -verbose -stacktrace, it could help you to find cause of fault.

like image 21
rxn1d Avatar answered Oct 08 '22 03:10

rxn1d