Magento 2 code debug line by line

$result = ''; foreach( debug_backtrace() as $_stack) { $result .= ' ' . (isset($_stack['file']) ? $_stack['file'] : '') . ' ' . (isset($_stack['line']) ? $_stack['line'] : '') . ' ' . (isset($_stack['function']) ? $_stack['function'] : '') . ' '; } echo '
' . 'file' . '' . $result . '
FileLineFunction
';die;

Comments

Popular posts from this blog

Magento 2 upgrade steps

Magento 2 test data clean using my sql query

Magento 2 invalid Form key