Deprecated: 関数 WP_Dependencies->add_data() がバージョン 6.9.0 から非推奨になった引数付きで呼び出されました。IE の条件付きコメントは、対応しているすべてのブラウザで無視されます。 in /home/artws/woo-japan.info/public_html/wp-includes/functions.php on line 6131

Deprecated: 関数 WP_Dependencies->add_data() がバージョン 6.9.0 から非推奨になった引数付きで呼び出されました。IE の条件付きコメントは、対応しているすべてのブラウザで無視されます。 in /home/artws/woo-japan.info/public_html/wp-includes/functions.php on line 6131
コンテンツへスキップ →

debugging

Resources for debugging

WordPress

手始めに、WordPress自体に組み込まれているデバッグ・ツールから始めるのがよいだろう:

The documentation for Debugging in WordPress covers a number of environment variables you can set to enable WordPress’s core debugging tools.

Query Monitor

A popular plugin for WordPress developers is Query Monitor, the developer tools for WordPress. Query Monitor enables debugging of database queries, PHP errors, AJAX/Rest requests, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more.

Email Debugging

ローカルのWooCommerce環境で作業する場合、MailpitやMailhogのようなツールを有効にして、すべてのトランザクションメールを送信するのではなく、ログにリダイレクトすることをお勧めします。

あるいは、Stop Emailsのようなプラグインを使って、誤ってメールがトリガーされないようにすることもできます。

WooCommerce

Logging

WooCommerceにはログシステムがあり、サイトのエラーを見つけたり追跡したりするのにとても役立ちます:

Coming Soon Mode

WooCommerceの "coming soon "モードでは、作業中に一時的にサイトを見えなくすることができます。

PHP/JavaScript Debugging

Xdebug

If you're using wp-env to run a local development environment (this is the recommended method for the WooCommerce monorepo), you can activate Xdebug and then use an IDE like VS Code or PhpStorm to set breakpoints and step through the code as it executes: