Hi Marco,
Thank you for the quick response.
That's right, the 'begin' is not correct in this context. I've corrected that in above code section. And, of course, the procedure also has to be compiled with debug information.
I ran the scenario again with the 'DebugSQL' parameter. For me...