Drive

Horror lover
Member
Joined
Jan 14, 2017
Messages
11
Reaction score
3
First Language
Spanish
Primarily Uses
RMMZ
It is quite tedious to check the code and not know where it goes many times. I try to use debug mode like in Google Chrome, but unfortunately RPG Maker MZ isn't a web page either. Does anyone know exactly how it debugged or is it not possible?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,752
Reaction score
2,848
First Language
English
Primarily Uses
RMMZ
If you hit F8 to open developer tools, you have the console where you can enter javascript code, and if you go to "sources" you can set breakpoints in the plugins.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,692
Reaction score
8,495
First Language
German
Primarily Uses
RMMV
why do you claim that MZ is no webpage? The project has an index.html and can be launched with any browser you want.

That said, the RPG-Makers only provide event-level debugging functions themselves, triggered by a playtest flag that is only set by launching through the editor. That enables the control-override to passability and the display pages for variables and switches.

For checking on plugins you'll need external tools or a browser-based debugger

EDIT: ninja'd
 

Drive

Horror lover
Member
Joined
Jan 14, 2017
Messages
11
Reaction score
3
First Language
Spanish
Primarily Uses
RMMZ
why do you claim that MZ is no webpage? The project has an index.html and can be launched with any browser you want.

That said, the RPG-Makers only provide event-level debugging functions themselves, triggered by a playtest flag that is only set by launching through the editor. That enables the control-override to passability and the display pages for variables and switches.

For checking on plugins you'll need external tools or a browser-based debugger

EDIT: ninja'd
Because when inspecting elements you can inspect all the elements of a website, something that with RPG Maker MZ is impossible, you only have one window, you do not have elements within it that you can select, when debugging the game it simply stops without being able to select anything.
If you hit F8 to open developer tools, you have the console where you can enter javascript code, and if you go to "sources" you can set breakpoints in the plugins.
Isn't there a way to debug in real time while playing the game by viewing the code that the player selects? I don't know if I explain myself.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,752
Reaction score
2,848
First Language
English
Primarily Uses
RMMZ
Because when inspecting elements you can inspect all the elements of a website, something that with RPG Maker MZ is impossible, you only have one window, you do not have elements within it that you can select, when debugging the game it simply stops without being able to select anything.

Isn't there a way to debug in real time while playing the game by viewing the code that the player selects? I don't know if I explain myself.
That's what breakpoints do. You set the point in the code where you want to start debugging, and when it hits that it pauses and takes you to that line in the sources tab. You can then step through the code line by line following the flow of function calls, stepping over/into functions as needed.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG
BCj
Finished another GUI! Turn indicator wasn't made by me.

ff981f8dc50b03cf58038c644334b454.jpg


3cb092fdc00087acfa0a190fd891f0ed.jpg
Added a small refining scene to my game.

It makes sense that you try to focus on the squishy mages at the back of the party first, right? If the mage can out-DPS the enemy DPS before the latter can kill the tank in front, the fight becomes boring.

Forum statistics

Threads
115,240
Messages
1,088,298
Members
149,834
Latest member
hootwhoration
Top