# ツール

デバッグ用ツールは2つのカテゴリーに分かれます:

* 何か発生した時にそれを診断し、問題点を明らかにするためのツール
* ミスやエラーの発生自身を未然に防ぐツール

古の格言はここでも当てはまります: **予防は治療に勝る**

## デバッグ用ツール / プラグイン

WordPressのリポジトリから[Developer](https://wordpress.org/plugins/developer/)プラグインをインストールすると、たくさんの種類のデバッグ用ツールに簡単にアクセスできるようになります:

* [Log Deprecated Notices](https://wordpress.org/plugins/log-deprecated-notices/)は、deprecated(非推奨)の関数の利用のログを取ります。
* [Debug Bar](https://wordpress.org/plugins/debug-bar)はPHPのNotices/Warnings/Errorsのデバッギング、SQLクエリーのレビュー、キャッシュ動作の分析、その他多くのためのインターフェイスを提供します。また、プラグインで拡張可能です。
* 例えば、[Debug Console](https://wordpress.org/plugins/debug-bar-console/)はとても便利です。

### クエリーモニター

### XDebug

### PHPデバッガー

### ブラウザーのウェブインスペクター

## 予防

### PHP Mess Detector

### SCheck


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.wptherightway.org/japanese/debugging/tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
