Debug Menu at Any Time (Ver.1.1.4)

You can call up the debug menu whether you're in battle or in a menu.
You can also use the debug menu during map events.
Download
DebugAnytime.js Ver.1.1.4
MIT License

How to Use
You can open the debug menu while keeping the scene as it is.

Specifications
Please place this as high up as possible as it will interfere with the scene change function.
This plugin's functionality will be completely disabled except during test plays.

When using KMS_DebugUtil,
if you perform "Transfer" or "Reload map" outside of the map scene,
all stacked scenes will be destroyed and you will go to the map scene.
Also, if you open the debug menu during battle and perform "Transfer", "Reload map", or "Encounter", you will return to the battle and a process will be inserted to abort it.
2024/11/14:Ver.1.1.0 Behavior fix. Optimization to KMS_DebugUtil.

It is now possible to avoid errors, correct backgrounds under certain conditions, and handle irregular operations to a certain extent.
2024/11/17:Ver.1.1.1 Fixed "Encounter" behavior in KMS_DebugUtil.

Added a correction function to prevent multiple stacking of battle scenes.
2024/11/21:Ver.1.1.2 Fixed the behavior of "Watch switches/variables" in KMS_DebugUtil.
2024/11/25:Ver.1.1.3 Fixed the conditional expression.
2025/03/14:Ver.1.1.4 Fixed a bug in KMS_DebugUtil when the map does not exist.

Original thread: https://forums.rpgmakerweb.com/threads/debug-menu-at-any-time-ver-1-1-4.173131/