Debug/view source of GWT generated java code

前端 未结 2 453
终归单人心
终归单人心 2021-01-13 12:18

What are my options for being able to view the generated code from my custom GWT generator (com.google.gwt.core.ext.Generator).

I have been compleplating creating m

相关标签:
2条回答
  • 2021-01-13 12:44

    To write the generated Java source (i.e. not the generated JavaScript) into a directory when you run the GWT-Compiler, simply add the gwtc compiler option "-gen", with a target directory.

    0 讨论(0)
  • 2021-01-13 12:44

    Alternate option is to debug the GWT compilation process which actually calls your generator's generate() method. You can setup a breakpoint at the beginning of your generate() method, and then step through it and inspect what's going on.

    For further information on how to do it, you can look into the following:

    http://lazyrhino.blogspot.de/2013/10/gwt-generator-part-3-debugging-generation.html

    0 讨论(0)
提交回复
热议问题