Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would be super useful to have a way to toggle on/off ALL context reaction debug.
Then when solving problems in dev it would be simple to get lots of great output, as well as easily confirm all debugging is off when taking sites live.
Comment | File | Size | Author |
---|---|---|---|
#3 | context-1220464-3.patch | 1.27 KB | jwhat |
Comments
Comment #1
doublejosh CreditAttribution: doublejosh commenteddrush context debug-all
Comment #2
rgracia CreditAttribution: rgracia commentedThis would be an amazing feature for version 7. Should I create an issue for that version?
Comment #3
jwhat CreditAttribution: jwhat commentedAdded a settings config in context_reaction_debug.inc for "Enable debug reaction on all contexts".
To enable via drush: drush vset context_reaction_debug_enable_global 1
To disable via drush: drush vset context_reaction_debug_enable_global 0
Comment #4
oknateTested the patch above and it worked correctly. Nice improvement.
Comment #5
anpolimusTested locally - everything is working correctly.
Comment #6
doublejosh CreditAttribution: doublejosh commentedAwesome! Feeling silly how easy this was to add, should have just done it :) THANK YOU @jwhat
Comment #7
iamEAP CreditAttribution: iamEAP commented+1 RTBC. Moving back to anonymous assignment.
Comment #8
rgracia CreditAttribution: rgracia commentedTested locally successfully.
Comment #9
bjcone CreditAttribution: bjcone commentedImplemented the patch from 3 against 7.x-3.1 successfully. Incredibly useful. Thanks for this.
Comment #10
colanCommitted in fc68156.