The debug log is an essential part of logging operations for various issue, but which bits should be passed for its second argument?
For any crashing scenario, it is recommended to use SET DATABASE PARAMETER(34;1+2) where the value 2 also logs any calls to methods and commands. Note that by default, the debug log will immediate write each operation to disk and is much slower but more effective for investigating a crash.
For any non-crashing scenario, the write-intensive setting can be omitted using SET DATABASE PARAMETER(34;1+2+8) where the value 8 where the immediate writing is disabled. This argument can be useful to make the logs more compact and generated at a faster rate.
Keep this in mind when submitting a case in a crash vs non-crash scenario.