New answers tagged debugging
0
votes
Search is very slow for certain roles
The answer to your question about how to debug: you have to use a technique called “profiling”. By far the easiest PHP profiler to use is https://www.blackfire.io/. I’ve used it and I recommend it. ...
5
votes
Accepted
How to find module that is updating my node after insert
You could implement hook_module_implements_alter to list all modules that implement a specific hook this way:
function myModule_module_implements_alter(&$implementations, $hook) {
if ($hook === '...
1
vote
Enable error logging from settings.php
Please try the following:
in the webroot, rename .htaccess to .htaccess.old -- Apache 2.4 has changed syntax in some directives that may be causing the error before PHP is even reached. Also check ...
1
vote
Enable error logging from settings.php
Here's the official manual for Drupal 7: https://www.drupal.org/docs/7/creating-custom-modules/show-all-errors-while-developing
At the end of your sites/default/settings.php, add the following lines:
...
1
vote
How do I debug Drupal\Component\PhpStorage\FileStorage::createDirectory()?
The standard debugger for PHP is Xdebug. Install it and set a breakpoint at that line. If for some reason you cannot use Xdebug, \Drupal::logger('my_module')->notice($message) or error_log() the ...
Top 50 recent answers are included