You can use ee debug command which automates some part.
This is needed for graphical presentation of calls.
Open config.php under webgrind folder. You may need to specify location of dot binary.
Goto http://example.com/webgrind in your browser and you will see webgrind UI there.
But wait, you may not see any output there as cachegrind files may not have created yet.
You may not see anything as we have set xdebug to profile only on trigger. This is good for profiling sites used in production environment as well as on server with multiple sites using same PHP pool.
Be warned, that this can eat up GB’s of space on a live server with decent traffic in an hour!
You can change a line like below and it will profile php code always.
We have covered remote debugging with Netbeans here: https://easyengine.io/tutorials/php/xdebug-netbeans/. Please note that changes to debug config in NetBeans article, if you decide to use it.
Xdebug site has more remote options.