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,699
Reaction score
2,800
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,300
Reaction score
8,367
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,699
Reaction score
2,800
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

I kinda spent the day having my own little gamejam and came up with this Catastrophe!

GZOq45s.png
Have Defeated Enemy Join Party as Actor, Show Passage Status, & MZ-Chan Art | RPG Maker News #107

My outfit at Metrocon. It was fun.
Manafinder got featured in an Upcoming Indie RPGs video alongside other great RPG Maker (and not RPG Maker) games!

Frostorm wrote on Pharonix's profile.
Hey bro, hmu if you're around...I really need your help. >.<

Forum statistics

Threads
113,623
Messages
1,076,279
Members
147,638
Latest member
Zachimera
Top