In PHP, I have a complex object/array structure which can be inspected during debugging. But sometimes it would be easier to just dump it to a clipboard in human readible form (like print_r) and then text-search or just browse.
Of course it is possible to do print_r inside the program and have it printed in text form. But when the debugging session is advanced or deeply nested, it means loss of time (it would need to restart debugging).
In the debug Variables window, I can right-click on the structure and Copy, but it does not copy the whole object structure or array, only the first level which was clicked.
So is it possible to somehow save the whole object in text format, but ad-hoc, without planning and without restarting the debugger?