MV/MZ Visual Studio Code Debug Visualizer!


Ever wonder what your plugin is doing? Console log looking like spaghetti? You can get the debug visualizer here. Similarly, it could help you in determining plugin conflicts (depending on the case). It can still take a while to track down that one variable, but if it is worth the trouble then give it a shot!

1760156898047.png
This looks impressive and I have NO IDEA how to make use of it.
This looks impressive and I have NO IDEA how to make use of it.

It basically replaces doing debug with console.log(varThat) in Visual Studio Code. There are some things that it can't do without the engine running, but there are several things you can do. Debug Visualizer is an extension you would use before running the engine. This isn't a replacement for VisuStella/Yanfly debugger or SumRD debugger, which debug during game testing.

Let's use three use cases:
  1. You have an array in a plugin that must work with several other plugins. When the plugin is by itself, it works great. But when used with the other 2 to 200 plugins, the array gets mixed up in the process. It can run a step-by-step process to determine the root cause.
  2. You have a custom combat system. You have three variables that modify damage: player state, enemy state, and environment state. You can run through damage to make sure that the damage aligns with your game design.
  3. With your custom combat system, you have combo attacks. You create a combo-like attack that affects several enemies over time. While it works on the first turn, things become horribly unbalanced by the third turn. It can isolate the variables per iteration when the issue happens. Let's say some programmer used i or x in four separate functions; this could help isolate it.
It helps you keep your code nice and clean.
I didn't saw this one before, but it looks really cool to test out.
which I can check on my SDJB_NaviCustomizer 😀

see how it pack out as it has complex array and few windows.
so this gonna be a nice testing purpose as it can be really helpful.

thanks for sharing this ^^

Original thread: https://forums.rpgmakerweb.com/threads/visual-studio-code-debug-visualizer.180505/