Hello Dan Thank you very much. And I'd like to know how could I configure the debug dir as the "Generated Source Root"? "2. Mark the debug dir you configured in step 1 as the "Generated Source Root".
Zou Dan <[email protected]> 于2022年12月12日周一 15:33写道: > Hi wangguangyuan, the picture in your email are not displayed normally. > And I used to debug the generated code in IDEA follow the steps below: > 1. Add two debug configurations: > "-Dorg.codehaus.janino.source_debugging.enable=true" and > "-Dorg.codehaus.janino.source_debugging.dir=/your_own_path" > 2. Mark the debug dir you configured in step1as the "Generated Source Root" > 3. Now, you are free to debug the generated code! > > Maybe you missed step2, hope it can help you. > > > > 2022年12月10日 20:28,guangyuan wang <[email protected]> 写道: > > > > Dear all > > I am trying to use IntelliJ debug code generated by janino, > according to the link: > https://calcite.apache.org/docs/howto.html#debugging-generated-classes-in-intellij > . > > But I can not step into the generated source code, just like > this below. > > Only could see the limited information of Baz. But can not open > the source code of Baz, and can not add breakpoint on the line of the Baz > source code. > > I have also read the link: > https://janino-compiler.github.io/janino/#debugging > > But I just can not step right into the generated code. > > Below is my configuration: > > > > > > Best, > Dan Zou > >
