Skip to content

Commit 66b3fe8

Browse files
committed
debugging
1 parent 1116c23 commit 66b3fe8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

agent/fw_drupal8.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
641641
zval* class_val = NULL;
642642
nr_php_string_hash_key_t* method_key = NULL;
643643
zval* module_val = NULL;
644+
zval* dump = NULL;
644645

645646
char* hookpath = NULL;
646647

@@ -658,6 +659,8 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
658659
}
659660
}
660661

662+
dump = nr_php_call(NULL, "var_dump", hook_implementation_map);
663+
nrl_verbosedebug(NRL_FRAMEWORK, "HOOKLIST: %s", Z_STRVAL_P(dump));
661664
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(hook_implementation_map), hook_key,
662665
hook_val) {
663666
if (nr_is_invalid_key_val_arr(hook_key, hook_val, "hook")) {

0 commit comments

Comments
 (0)