From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/console/debug/index.html | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 files/ja/web/api/console/debug/index.html (limited to 'files/ja/web/api/console/debug') 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 +--- +
{{APIRef("Console API")}}
+ +

{{domxref("Console")}} の debug() メソッドは、"debug" ログレベルで Web コンソールにメッセージを出力します。このメッセージは、デバッグ出力を表示するようにコンソールが構成されている場合にのみユーザに表示されます。

+ +

{{AvailableInWorkers}}

+ +

構文

+ +
console.debug(obj1 [, obj2, ..., objN]);
+console.debug(msg [, subst1, ..., substN]);
+
+ +

パラメータ

+ +
+
obj1 ... objN
+
出力する JavaScript オブジェクトのリスト。これらの各オブジェクトの文字列表現は、リストされた順に追加され、コンソールに出力されます。
+
msg
+
連続した順序で subst1 から substN に置き換えられる 0 個以上の置換文字列を含む JavaScript 文字列。
+
subst1 ... substN
+
msg 内の置換文字列を置換する JavaScript オブジェクト。これにより、出力の形式をさらに制御できます。置換のしくみの説明については、{{SectionOnPage("/ja/docs/Web/API/Console", "文字列置換を使用する")}} を参照してください。
+
+ +

詳細については、{{domxref("console")}} オブジェクトのドキュメントの コンソールにテキストを出力する を参照してください。

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様書ステータスコメント
{{SpecName("Console API", "#debug", "console.debug()")}}{{Spec2("Console API")}}初期定義
+ +

ブラウザの互換性

+ +
+ + +

{{Compat("api.Console.debug")}}

+
-- cgit v1.2.3-54-g00ecf