Used test code:
$f = fopen(FULL_PATH . '/system/config.php', 'r');
test($f);
function test($file)
{
	throw new RuntimeException('Test');
}Test Plan
- Configure debugger to be enabled
 - Modify index php. Add test code after $application->Init();
 - Open some front-end page
 - Confirm that RuntimeException: Test error message is shown in debugger
 - Click on Function link it the backtrace block before error message
 - Confirm, that value of resource type parameter is displayed correctly, like Resource id #n, where n is some integer value