<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="ja">Debug オブジェクト (JavaScript)</cite>
(<time>2015-12-15 13:23:18 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://msdn.microsoft.com/ja-jp/library/bs12a9wf(v=vs.94).aspx">https://msdn.microsoft.com/ja-jp/library/bs12a9wf(v=vs.94).aspx</anchor-external></p></figcaption><blockquote><p>Debug オブジェクトをインスタンス化することはありません。そのすべてのプロパティおよびメソッドには、function を呼び出してアクセスできます。</p><p>Internet Explorer と Windows 8.x ストア アプリのデバッグ方法は異なります。Windows 8.x ストア アプリでは、Debug オブジェクトの write 関数と writeln 関数で、実行時に Visual Studio の出力ウィンドウに文字列を表示します。Windows 8.x ストア アプリのデバッグの詳細については、「Visual Studio でのストア アプリのデバッグ」を参照してください。</p><p>Internet Explorer スクリプトをデバッグするには、スクリプト デバッガーをインストールし、スクリプトをデバッグ モードで実行する必要があります。Internet Explorer 8 以降のバージョンには JavaScript のデバッガーが含まれます。Internet Explorer の旧バージョンを使用している場合は、「How to: Enable and Start Script Debugging from Internet Explorer (方法: Internet Explorer でスクリプトのデバッグを有効にして開始する)」を参照してください。</p><p>スクリプトがデバッグされない場合、関数の影響はありません。</p><p>この例では、write 関数を使用して変数の値を表示します。</p><p>JavaScript</p><p>var counter = 42;</p><p>Debug.write(&quot;The value of counter is &quot; + counter);</p><p>必要条件</p><p>Quirks、Internet Explorer 6 標準、Internet Explorer 7 標準、Internet Explorer 8 標準、Internet Explorer 9 標準、Internet Explorer 10 標準、Internet Explorer 11 標準の各ドキュメント モードでサポートされます。ストア アプリ (Windows 8 および Windows Phone 8.1) でもサポートされます。</p></blockquote></figure></body></html>