I am sorry that this is such an amateur question, but so far I haven’t been able to find definitive answers on my own.
This has been my first-time working with WP and PHP, and I have already built my own WP website and plugin that involve database customization using Local on my PC. When I had unhandled errors with my plugin during the development, PHP exception details were shown on my web pages (not on the dashboard), so I used XDebug+VSCode, debugged the errors and didn’t think much of the error reporting mechanism itself.
Now I am close to launch my website, it dawned on me that I don’t know exactly how to turn my website and plugin into “production” mode, partly because I realized ‘WP_DEBUG’ had been set to FALSE all along for my website during the development.
Do I see those PHP error details while developing on Local, only because I am on Local? Once I go live with my site with a web hosting company, my website visitors won’t see those PHP error details, or is there anything else I have to do other than setting the variables in wp-config.php?
Also if unhandled PHP errors are suppressed for users, then what will they see? Will WP just show a generic “something went wrong” message, and users can just go back?
I feel very dumb asking these questions, but I’d really appreciate if someone could educate me.
Thank you,