Back-End

Groovy 파일을 디버깅 할 수 있을까??

외계공룡 2020. 10. 13. 17:14

해당 의문을 품게 된 계기는 Grooovy 파일을 수정하다가 발생한 버그를 추적하기 위해

Eclipse 툴을 사용하여 Groovy 파일의 어느 한 지점에 breakpoint를 찍고서는 debug모드로 실행하였다.

그러나 결과는 원하는대로 나오지 않고 오른쪽 화면과 같이 나온다.

 

그래서 어떻게 하면 문제를 해결할 수 있을까 인터넷 서칭을 해보았다.

그리고 다음과 같은 발견하게 되었다.

groovy-eclipse-plugin.42567.n3.nabble.com/How-to-debug-embedding-groovy-with-Groovy-Eclipse-Plugin-td3258234.html

 

groovy-eclipse-plugin-user - How to debug embedding groovy with Groovy-Eclipse-Plugin

I'm guessing that you see the "source not found" messages on stack frames that relate to Groovy internals, native method calls, and reflective calls.  Is that right? As you probably know, Groovy uses a metaobject protocol to dispatch all method invocation

groovy-eclipse-plugin.42567.n3.nabble.com

이 사이트의 말에 의하면 groovy 이클립스 플러그인은 디버깅 모드를 지원하지 않는다고 한다.

해결방법으로는 STS tool을 다운받아서 사용하라고 말하고 있다.