I made this small RPG Maker MV plugin as supplement for something else, and it seems like it might be useful:
This one’s a freebie, as it’s really just the trace and custom error screen, which weren’t that difficult to make. Please do consider tipping a few dollars if proves useful to you though, even if I’m not comfortable with adding a paywall here. I’d really appreciate it.
The location information is resolved automatically, so you don’t have to do anything special beyond adding this plugin to your project. The plugin itself is web and desktop compatible and will try to use the modern browser clipboard API to copy the error, before falling back to a pre-selected <textarea>.
Here’s a short example trace, copied verbatim from the game window (in testing mode; names are hidden otherwise by default):
Error:
Tried to load undefined parameter 1 without default. (The Common Event was not called as Custom Plugin Command.)
at Common Event 5 (Deep Error), line 3
at Troop 4 (Minotaur), Page 1, line 1