[SOLVED] Is there a way to track every line of code game runs currently in game?

So basically I got some kind of a bug, that causes the game to do some weird changes after first in-game battle (windows become larger, and skill display moves to bottom)

Can I somehow track what code game runs at these moments, so I could track from where it, and maybe change it as a result
I figured it out.
I don't want to say anything else beside.
<JS Pre-Start Battle>
Scene_Battle.prototype.logWindowRect = function() {
const wx = 0;
const wy = 300;
const ww = Graphics.boxWidth;
const wh = this.calcWindowHeight(10, false);
return new Rectangle(wx, wy, ww, wh);
};

Scene_Battle.prototype.statusWindowRect = function() {
const extra = 10;
const ww = Graphics.boxWidth - 192;
const wh = this.windowAreaHeight() + extra;
const wx = this.isRightInputMode() ? 0 : Graphics.boxWidth - ww;
const wy = 150 + Graphics.boxHeight - wh + extra - 4;
return new Rectangle(wx, wy, ww, wh);
};

</JS Pre-Start Battle>
Don't put random code in your actor notetags :3
on't put random code in your actor notetags :3
don't put random code anywhere - if you don't know exactly what some code does, then don't use it at all
don't put random code anywhere - if you don't know exactly what some code does, then don't use it at all
I think Andar just killed half the support forums.
don't put random code anywhere - if you don't know exactly what some code does, then don't use it at all
I guess I wanted to test something (since this code turned out to be actually useful, I just had to put it in plugin), but forgot, and then I generally forgot what that thing did, so yeeeeah.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-is-there-a-way-to-track-every-line-of-code-game-runs-currently-in-game.163276/