This extension provides useful snippets for debugging with the Query Monitor plugin in WordPress development.
It requires the Query Monitor plugin to be installed and activated in your WordPress installation.
Note that this extension is not affiliated with the Query Monitor plugin.
Quickly insert debugging snippets in your PHP code by typing 'qm' to trigger suggestions from Query Monitor WordPress Snippets.
Snippet | Description |
---|---|
qm/debug | Inserts a debug message in the Query Monitor panel. |
qm/notice | Inserts a notice message in the Query Monitor panel. |
qm/warning | Inserts a warning message in the Query Monitor panel. |
qm/error | Inserts an error message in the Query Monitor panel. |
qm/critical | Inserts a critical message in the Query Monitor panel. |
qm/alert | Inserts an alert message in the Query Monitor panel. |
qm/emergency | Inserts an emergency message in the Query Monitor panel. |
qm/assert | Inserts an assertion in the Query Monitor panel. |
qm/assert_msg | Inserts an assertion with a message in the Query Monitor panel. |
qm/assert_msg_data | Inserts an assertion with a message and data in the Query Monitor panel. |
qm/start | Starts a timer in the Query Monitor panel. |
qm/lap | Adds a lap to a timer in the Query Monitor panel. |
qm/stop | Stops a timer in the Query Monitor panel. |
For more information on what each of these messages do, see the Query Monitor documentation.
This extension requires Visual Studio Code 1.6.0 or higher.
No known issues at this time.
Add support for qm/start
, qm/lap
, and qm/stop
snippets.
Update README.md.
Updated README.md.
Initial release of Query Monitor WordPress Snippets.