Place in functions.php

function thelist() {
    $included_files = get_included_files();
    $stylesheet_dir = str_replace( '', '/', get_stylesheet_directory() );
    $template_dir   = str_replace( '', '/', get_template_directory() );
    echo '<h3 class=&quot;debugtitle&quot;>Theme file templates used in this page</h3>';
    foreach ( $included_files as $key => $path ) {

        $path   = str_replace( '', '/', $path );

        if ( false === strpos( $path, $stylesheet_dir ) && false === strpos( $path, $template_dir ) )
            unset( $included_files[$key] );

        if(!strpos($path, '/wp-content/themes/') === false) {
            if(strpos($path, '/library/') === false) {
                echo $key.&quot; = &quot;. $path.&quot;</br>&quot;;
            }
        }
    }
}

To invoke:
&lt;?php thelist(); ?&gt;

<img alt="" src="http://premium.wpmudev.org/forums/?bb_attachments=437832&amp;bbat=27104&amp;inline" />