Yes is possible, in fact there are plenty of other debugging information that could be useful, in order to see the sql query generated see the following section in the documentation:
**
Using the generated code -> Troubleshooting and debugging -> Dynamic Query Engine Trancing -> Verbose level tracing**