when i first started programming, with php, it took me literally weeks to figure out how to get xdebug set up. (pro tip: just use DDEV - it makes it all simple).
Not a second of that was a waste because xdebug (like all debuggers) is just that amazing.