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.
// The temp directory does vary across multiple simpletest instances.
$file = 'temporary://drupal_debug.txt';
Could become:
$file = variable_get('drupal_debug_file', 'temporary://drupal_debug.txt');
This way its alterable for example in the settings file.
I had the problem that a debug file was locked and I had to debug some stuff, but I don't have sysadmin powers. This way I could keep on debugging.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2087321_debug_filename-9.patch | 921 bytes | wouters_f |
#2 | 2087321_debug_filename.patch | 628 bytes | wouters_f |
#2 | 2087321_d7_debug_filename.patch | 628 bytes | wouters_f |
Comments
Comment #1
pcambraI agree this could be useful, if someone wants to provide a patch, let's use the shiny CMI stuff available in D8 first :)
Comment #2
wouters_f CreditAttribution: wouters_f commentedPatch for d8 and d7 included.
Comment #4
salvisA recent core change broke Devel. #2082443: Fields are now bound to an entity type needs to be committed first.
Comment #5
rvilar#2: 2087321_debug_filename.patch queued for re-testing.
Comment #6
rvilar#2: 2087321_d7_debug_filename.patch queued for re-testing.
Comment #7
parthipanramesh CreditAttribution: parthipanramesh commentedLatest patch does work fine.
Comment #8
pcambraThe patch is using variable_get and this stuff needs to be in config for Drupal 8, see #1775842: [meta] Convert all variables to state and/or config systems
Comment #9
wouters_f CreditAttribution: wouters_f commentedThe d8 patch provided.
Comment #10
willzyx CreditAttribution: willzyx commentedClosing for lack of activity. Feel free to reopen if the issue still exists