Skip to content

Instantly share code, notes, and snippets.

@mparker17
Last active November 7, 2017 16:47
Show Gist options
  • Save mparker17/5025004 to your computer and use it in GitHub Desktop.
Save mparker17/5025004 to your computer and use it in GitHub Desktop.
Debugging Drupal — ideal breakpoint spots
Drupal 7.26:
- includes/bootstrap.inc:2336 — _drupal_error_handler() — For tracking down PHP errors, warnings, notices, etc.
- includes/form.inc:1452 — form_execute_handlers() — For tracking down issues with the Form API.
- modules/dblog/dblog.module:146 — dblog_watchdog() — For tracking down errors in the database log.
Drupal 8.3.7:
- core/lib/Drupal/Core/Routing/Router.php:151 - determine which route was used for a request, and route parameter names (route parameter values can be obtained from from URL).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment