Can't bring on Groovy debugging [Newbie-Question]

19 views
Skip to first unread message

Eiko Thomas

unread,
Nov 1, 2016, 6:59:44 PM11/1/16
to eclim-user
Hello,
I successfully installed eclim and do now the frist steps in this new world.

I got the current scenario:
1. I've got a sample Groovy project and started it with gradle in debug mode.
2. In another terminal I started vim and load the current running main class
vim --servername debug src/main/groovy/de/test/StartCont.groovy
3. I try to start debugging with :JavaDebugStart localhost 9009

Unfortunately I got the no editor command message.

The documentation says this command is only available for java filetype.
:set filetype? in vim says "filetype=groovy"

What is needed to bring the debugging in vim on?

Any help or comment is welcome.

Cheers Eiko

Eiko Thomas

unread,
Nov 3, 2016, 2:50:02 AM11/3/16
to eclim-user
The Problem is solved for me.

I add in ~/.vim/eclim/ftplugin/groovy.vim the following lines from ~/.vim/eclim/ftplugin/java.vim and it works

...
if !exists(":JavaDebug")
  command -nargs=* -buffer JavaDebugStart
    \ :call eclim#java#debug#DebugStart(<f-args>)
  command -nargs=0 -buffer JavaDebugStop :call eclim#java#debug#DebugStop()
  command -nargs=0 -buffer JavaDebugStatus :call eclim#java#debug#Status()
  command -nargs=+ -buffer JavaDebugStep :call eclim#java#debug#Step(<f-args>)

  command -nargs=0 -buffer JavaDebugThreadSuspendAll
    \ :call eclim#java#debug#DebugThreadSuspendAll()
  command -nargs=0 -buffer JavaDebugThreadResume
    \ :call eclim#java#debug#DebugThreadResume()
  command -nargs=0 -buffer JavaDebugThreadResumeAll
    \ :call eclim#java#debug#DebugThreadResumeAll()

  command -nargs=0 -buffer -bang JavaDebugBreakpointToggle
    \ :call eclim#java#debug#BreakpointToggle('<bang>')
  command -nargs=0 -buffer -bang JavaDebugBreakpointsList
    \ :call eclim#java#debug#BreakpointsList('<bang>')
  command -nargs=0 -buffer -bang JavaDebugBreakpointRemove
    \ :call eclim#java#debug#BreakpointRemove('<bang>')
endif

...
Reply all
Reply to author
Forward
0 new messages