0

I'm trying to find a Pry Deubgger equivalent on Groovy.

I found a good enough project named groovy-debugger and updated it's dependencies to run against groovy 2.3.1 which comes with Grails 2.4.0.

If I open a groovysh just a blinking cursor will be shown which does not accept any input.

I tried to get the input stream and output stream of a current grails console, but it does not help.

Anyone can help me setup my beloved REPL-driven development environment on Groovy.

Forest Kunecke
  • 2,160
  • 15
  • 32
Jahan Zinedine
  • 14,616
  • 5
  • 46
  • 70
  • Duplicate?: http://stackoverflow.com/questions/10285696/can-i-debug-a-grails-application-with-a-text-editor-such-as-sublime-text-2 – Joshua Moore Jun 10 '14 at 16:36
  • To voters for closing the question: It's not what I'm looking for, I'm looking for a drop in REPL, please do not vote for close if you don't understand the question exactly! – Jahan Zinedine Jun 11 '14 at 06:57

1 Answers1

1

So using Grails 2.4.0 I created a new project and started the shell with grails shell and it was able to accept input with no problem. This is with Mac OS X. What operating system are you running?

Graeme Rocher
  • 7,985
  • 2
  • 26
  • 37
  • I've used the `com.gdb.GdbShell.gdb()` successfully on my Mac at home even though I put the command in a `.template` file to inspect the variables while generating code through `scaffold` plugin but I don't know if it works on Linux(Ubuntu 14.4) or not. What I'm trying to do now, is to pause a RUNNING Grails application with an open console to inspect variables, and run arbitrary code. Please take a look at http://aaronbabcock.blogspot.ro/2011/11/groovy-debugging.html – Jahan Zinedine Jun 11 '14 at 08:09