How to dump hxd response to the console?

Hi, I would like to know how I can dump to the console the content of
the response of a xhr call during a functionnal test ?

I need to check the javascript code generated by the controller

Thanks