You can add the vm flags -Dorg.codehaus.janino.source_debugging.enable=true or -Dcalcite.debug=true.
Janino will create temporary files in the system’s default location for temporary files, such as /tmp on Unix-based systems.
Refer to the documentation: https://calcite.apache.org/docs/howto.html