While the built-in debugging options in WordPress should cover most of your needs,
there are a number of plugins that can help you with debugging your code.
You can find these plugins in the WordPress plugin directory by searching for "debug" or "debugging".
Two of the most popular options are DebugBar and QueryMonitor. DebugBar is a plugin built
and maintained by the WordPress developer community. It adds a debug menu to the admin bar
that shows query, cache and other helpful debugging information. When the WP debug
constant is enabled, it also tracks PHP warnings and notices to make them easier to find.
And when SaveQueries is enabled, the MySQL queries are tracked and displayed.
Another option is QueryMonitor which also adds a debug menu to the admin bar
and displays information about the current page request. QueryMonitor enables debugging of many
things including database queries, PHP errors, hooks and actions, block editor blocks,
enqueued scripts and styles, HTTP API calls and more. Both plugins are great options for
debugging your WordPress code and can help you track down issues more easily.