Wordpress has its own debugging system that Pantheon customers can leverage. Below is the setup that should be able to work regardless of environment connection mode.
Place this code on wp-config.php
:
if (defined('PANTHEON_ENVIRONMENT')) {
// Wordpress debug settings in Development and Test environments.
if (!in_array(PANTHEON_ENVIRONMENT, array('live'))) {
// Debugging enabled.
if (!defined( 'WP_DEBUG' )) {
define( 'WP_DEBUG', true );