[ANN] GroovyJ 0.1.4 released 关注
A new version is available for download through the plug-in manager.
- IDEA errors when opening the Colors & Fonts preferences panel (caused by the presence of '>' characters in the demo text)
- Added support for IntelliJ IDEA 5.0.1
- Updated the default Groovy runtime to the latest snapshot of the forthcoming Groovy JSR-04 release
See http://groovy.codehaus.org/IntelliJIDEAPlugin and http://groovy.codehaus.org/GroovyJ+Status.
seems like everything was ready for Groovy debugging, except one thing - it doesn't stop at breakpoints,
it will just run through the script. Am I doing something wrong? (I did press the Debug button, not Run :o)
Thanks & Regards,
D:\j2sdk1.4.2_08ct\bin\java -Xdebug -Xrunjdwp:transport=dt_socket,address=N:3598,suspend=y,server=n -Dfile.encoding=windows-1250 -classpath "D:\j2sdk1.4.2_08ct\jre\lib\charsets.jar;D:\j2sdk1.4.2_08ct\jre\lib\jce.jar;D:\j2sdk1.4.2_08ct\jre\lib\jsse.jar;D:\j2sdk1.4.2_08ct\jre\lib\plugin.jar;D:\j2sdk1.4.2_08ct\jre\lib\rt.jar;D:\j2sdk1.4.2_08ct\jre\lib\sunrsasign.jar;D:\j2sdk1.4.2_08ct\jre\lib\ext\dnsns.jar;D:\j2sdk1.4.2_08ct\jre\lib\ext\ldapsec.jar;D:\j2sdk1.4.2_08ct\jre\lib\ext\localedata.jar;D:\j2sdk1.4.2_08ct\jre\lib\ext\sunjce_provider.jar;D:\Idea5projs\P0001\classes;C:\Documents and Settings\phook.NETWORK\.IntelliJIdea50\config\plugins\groovyj\lib\commons-cli-1.0.jar;C:\Documents and Settings\phook.NETWORK\.IntelliJIdea50\config\plugins\groovyj\lib\groovy-all-1.0-jsr-04-SNAPSHOT.jar;D:\Idea5projs\P0001\src;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\idea_rt.jar" groovy.lang.GroovyShell D:\Idea5projs\P0001\src\MapFromList.groovy
Connected to the target VM at '127.0.0.1:3598' using socket transport.
Disconnected from the target VM at '127.0.0.1:3598' using socket transport.
Process finished with exit code 0
Indeed, debugging Groovy scripts would have been a useful feature. However, this is not currently possible for the following reasons:
I believe IDEA supports the debugging of JSP's through JSR-45, http://www.jcp.org/en/jsr/detail?id=45.
However I have yet to find out whether the Language API introduced in IDEA 5.0 provides hooks for this. Perhaps someone from JetBrains (Dmitry Jemerov?) could confirm how the current Open API could be used to allow the debugging of other languages.
On the Groovy side, JSR-45 has even yet to be implemented, see http://jira.codehaus.org/browse/GROOVY-63.
On a more hopeful note, be assured that we will add debugging support into GroovyJ as soon as the above issues are resolved.
I think only then will Groovy and IntelliJ (because it will take literally ages for Eclipse to implement it) see their good times and popularity among users - no more Java-alien Pythons, etc, etc needed, just intertwined Groovy with Java for everything...
Really looking forward for The New Era to come!
Thanks a lot,
FR> Indeed, debugging Groovy scripts would have been a useful feature.
FR> However, this is not currently possible for the following reasons:
FR> I believe IDEA supports the debugging of JSP's through
FR> JSR-45, http://www.jcp.org/en/jsr/detail?id=45.
FR> However I have yet to find out whether the Language API introduced
FR> in IDEA 5.0 provides hooks for this. Perhaps someone from JetBrains
FR> (Dmitry Jemerov?) could confirm how the current Open API could be
FR> used to allow the debugging of other languages.
FR> On the Groovy side, JSR-45 has even yet to be implemented, see
The debugging support is in fact quite distinct from the Language API. Debugging
of other languages is possible through the PositionManager interface, which
provides mappings between bytecode locations and source code positions. One
of our standard PositionManager implementations supports JSR-45; it is currently
tied to JSPs, but it can be easily extended to other languages. Given that
it's entirely available in OpenAPI and sample plugins (the JSR45PositionManager
class and its subclasses), you can even do this extension yourself.
So once Groovy implements JSR-45 support, it should be quite easy to integrate
it with the IDEA debugger.
"Develop with pleasure!"