A debug.log in wp-content can be opened by anyone who knows the address.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', '/var/log/wordpress/debug.log' );
define( 'WP_DEBUG_DISPLAY', false );
WP_DEBUG_LOG can be a file path instead of true, so the log can sit outside the web root. The directory must exist and be writable by the PHP user, or nothing is written. WP_DEBUG_DISPLAY set to false keeps errors off the page. Follow the log with tail -f while you reload the page. Rotate it with logrotate, because a noisy plugin can fill a disk, and turn debugging off again on a production site.
Further reading: WordPress: Debugging in WordPress