If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Tracing with Xdebug

Started by chinmay.sahoo, 05-18-2016, 01:02:36

Previous topic - Next topic

chinmay.sahooTopic starter

Much of the Xdebug functionality is in the form of extra debugging statements that you can use to get extra information about your application. For example, you can find out what class, method,or function called the current context, and from which file and line that call originated.

Quote<?php
class MyClass {
public function myCaller($other) {
$other->myCallee();
}
}
class MyOther {
public function myCallee() {
printf("%s", xdebug_call_class());
printf("::%s", xdebug_call_function());
printf(" in %s", xdebug_call_file());
printf(":%s\n", xdebug_call_line());
}
}
$a = new MyClass();
$b = new MyOther();
$a->myCaller($b);



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...