Debug option versus deprecated code in running websites

This list is unfortunately not complete according to my experiences or (wrong or missing) understanding, see one of my last posts here in the forum, https://forum.getkirby.com/t/kirby-helpsection-plugin/13198/11 and https://forum.getkirby.com/t/custom-plugin-the-json-response-from-the-api-could-not-be-parsed/16078/6

Much more difficult is it for me as (already long-term) Kirby developer (without corresponding basic training) to debug foreign code, which shows in the normal browser page source code no error message, because it is uses e.g. Javascript code or leads in any background processes such as models or controllers or plugins to errors.

[Added:]
If I have a “normal” error in my code, I cannot debug it, if I have “deprecated code” in that (development) website.