What libs to use for debug printing in PHP?

Hey

Yesterday I was making my first real attempt at making new functionality which is not just one liner fixes, which is extending the API with the possibility to manage Notifications for Thirdparties.

What I did was based on the 4 bankaccount functions in htdocs/societe/class/api_thirdparties.class.php

I got something, and it doesn’t crash

but the Response Body is lacking due to some after processing

thirdparty_notifications_response_body

it got the numbers right, there should be 3 lines.

In Python I use icecream to print out
https://medium.com/@danielwume/debug-your-python-code-efficiently-with-icecream-package-10-advanced-examples-to-replace-print-820fef801cb0

and if it is larger data structures I would save as a json file then use JSON Crack module in VScodium editor or jsonhero.io to visualize the data before, during and after transitioning because that gives me the understanding of what I have, where I am and where I am going.

What tools/libs can I use in PHP?