How To Know When A Hook Fires?

I need to confirm if I have selected the right hook from the hooks database. I need to auto order a vehicle on confirming an order. I chose the change_order_status and registered it in my init.php using

fn_register_hooks(
'change_order_status'
);
now in my func.php I have
if (!defined('AREA')) {die('Access denied');}

function fn_dellyman_change_order_status(&$status_to,&$status_from,&$order_info,&$force_notification,&$order_statuses,&$place_order) {
//Getting authentication data to identify user
$auth = $_SESSION['auth'];
var_dump($auth);
}

when I go to orders and switch the order from say open to complete, I expect to see the contents of auth rendered to the page at least as part of the request response. However I see no indication that the hook selected is the right one. How can i ensure the hook called is correct.

Since order is updated by ajax, try the following code

fn_set_notification('W', 'W', var_export($auth, true));

Thanks for the suggestion but nothing happens when I add the line to the func.php. I expected a notification to pop up and then to inspect that through mu browser console

Have you cleared cache after new hook was added? Try to delete the var/cache directory manually

Have you cleared cache after new hook was added? Try to delete the var/cache directory manually

worked like a charm thanks

You are welcome! :)