Skip to main content
1 of 4

how to use backtrace in magento 2

In magento 1.x to use backtrace we use

echo Varien_Debug::backtrace(true, true); exit;

how can we use this facility in magento 2