diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/console/debug | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/console/debug')
-rw-r--r-- | files/ja/web/api/console/debug/index.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/files/ja/web/api/console/debug/index.html b/files/ja/web/api/console/debug/index.html new file mode 100644 index 0000000000..6a3169189b --- /dev/null +++ b/files/ja/web/api/console/debug/index.html @@ -0,0 +1,68 @@ +--- +title: Console.debug() +slug: Web/API/console/debug +tags: + - API + - Debug + - console + - log + - デバッグ + - プリント + - メソッド + - リファレンス + - ロギング + - 出力 + - 開発者ツール +translation_of: Web/API/Console/debug +--- +<div>{{APIRef("Console API")}}</div> + +<p><span class="seoSummary">{{domxref("Console")}} の <strong><code>debug()</code></strong> メソッドは、"debug" ログレベルで Web コンソールにメッセージを出力します。このメッセージは、デバッグ出力を表示するようにコンソールが構成されている場合にのみユーザに表示されます。</span></p> + +<p>{{AvailableInWorkers}}</p> + +<h2 id="構文">構文</h2> + +<pre class="syntaxbox notranslate">console.debug(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]); +console.debug(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]); +</pre> + +<h3 id="パラメータ">パラメータ</h3> + +<dl> + <dt><code>obj1</code> ... <code>objN</code></dt> + <dd>出力する JavaScript オブジェクトのリスト。これらの各オブジェクトの文字列表現は、リストされた順に追加され、コンソールに出力されます。</dd> + <dt><code>msg</code></dt> + <dd>連続した順序で <code>subst1</code> から <code>substN</code> に置き換えられる 0 個以上の置換文字列を含む JavaScript 文字列。</dd> + <dt><code>subst1</code> ... <code>substN</code></dt> + <dd><code>msg</code> 内の置換文字列を置換する JavaScript オブジェクト。これにより、出力の形式をさらに制御できます。置換のしくみの説明については、{{SectionOnPage("/ja/docs/Web/API/Console", "文字列置換を使用する")}} を参照してください。</dd> +</dl> + +<p>詳細については、{{domxref("console")}} オブジェクトのドキュメントの <a href="/ja/docs/Web/API/console#Outputting_text_to_the_console">コンソールにテキストを出力する</a> を参照してください。</p> + +<h2 id="仕様">仕様</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">仕様書</th> + <th scope="col">ステータス</th> + <th scope="col">コメント</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName("Console API", "#debug", "console.debug()")}}</td> + <td>{{Spec2("Console API")}}</td> + <td>初期定義</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザの互換性">ブラウザの互換性</h2> + +<div> +<div class="hidden">このページの互換性テーブルは、構造化データから生成されます。データに貢献したい場合は <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックして、プルリクエストを送信してください。</div> + +<p>{{Compat("api.Console.debug")}}</p> +</div> |