Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
What is your advice or trick for the console.log.
I have a small problem that makes debugging difficult, especially when I need to get information during an UPDATE process.
How do you deal with the debug console during console.log inside a update(LOOP) processes.

The only trick I have found is
To write:
Code:
Console = null;
I'm lazy that makes me waste time.
or
Copy past the update prototype with console.log and = null to crash the games.
Waste more time.!!

Is there a way. example:, right click, & break ,Pause,Stop console debug???
Or hiding option that will allow me to crash the games easily or put the debug at break or Stop.

This is probably a bug in the version of node or chromius rmmv use, but the shortkey.
F8 or CTRL+\ (for stop console) Not work for me !
 
Last edited:

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,602
Reaction score
3,832
First Language
Java's Crypt
Primarily Uses
RMMZ
I didn't understand what your issue is.
 

BlueMoon

Nebula Games Leader
Veteran
Joined
Jan 10, 2017
Messages
349
Reaction score
475
First Language
Italian
Primarily Uses
RMMZ
Mmh, I see. For stopping the process of the game, you can try to write in console:

Code:
delete PIXI

This will stop your game :)
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
I think I had a better idea, I had completely forgotten that I had a keyboard with macro programmable code.

i have a Tt eSPORTS Challenger with Macro key, Ideal for programming code !!
I have configured a Key [T6] macro for do
console = null +[Enter]


I would have preferred to be able to do it with my mouse(logitheque), example button of the center which calls the shortcut
[F8 or CTRL+\ ]
But those key not work in rmmv console.

But the keyboard is also fast., With a single key to stop the console in a loop!.
Sometimes we forget that we have the tools to our disposal. !

@Hudell
I'm talking when you add console.log() to debug and study the system that finds it in a loop..
This freezes the console and prevents to navigate properly in the class and object to study some value.
 
Last edited:

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,602
Reaction score
3,832
First Language
Java's Crypt
Primarily Uses
RMMZ
You could simply pause the JS execution with the pause button, then remove the console.log line using the console's code editor, hit ctrl+s to apply and F8 again to continue the game from where it paused.
Those changes won't be saved in the actual JS file, but they will affect the game until you close or reload it.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
@Hudell
You could simply pause the JS execution with the pause button, .
Pause JS , ... !!!
This is my question, but the basic codes do not work.
[F8 or CTRL+\ ] say is for pause or stop !!! but not work
How to do ?
i make you a little video to understant.

If you have any trick I am taker.
I think rather a bug in the software ...
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,602
Reaction score
3,832
First Language
Java's Crypt
Primarily Uses
RMMZ
Open the "sources" tab before pressing F8. The shortcut should work from there.
Another way to pause it is to type "debugger" in the console and press enter.
 

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
If the console has debugger functionality you can use this to pause the code:
Code:
function test () {
    debugger;
    return "this gets called after the process is resumed";
}

Edit: ninjad :p
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
Open the "sources" tab before pressing F8. The shortcut should work from there.
OMG loll
Thank you infinitely to you it works. !!!
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
Open the "sources" tab before pressing F8. The shortcut should work from there.
Another way to pause it is to type "debugger" in the console and press enter.
Code:
Another way to pause it is to type "debugger"
other strange bug , IF console are pause , we can not close the windows,we need to Resume or kill process, but thank is work.
That was what I wanted to do, thank you for this trick.
now in can configu my mouse to do it ! :)

this is for you hudell :thumbsup-left::rock-left:
cartoon-bone-hi.png
 
Last edited:

Latest Threads

Latest Profile Posts

Stop shutting the damn power down! Why always like this
Working on a slightly experimental horror game. It will be finished in approximately 88888888888 years.
Y'all will enjoy it though, I put lots of effort into making it stand out.

It's called Red Light and it's inspired by another obscure RPG Maker horror game, but I don't want to give too much away just yet.
Ohh man, Weapon animations plugin feels so mandatory. Seeing that same image regardless of the icon of the weapon....ugh :p
Ok so......Maaaaybe I've taken a ''little'' bit of inspiration from FF9 when it comes to battle hud xD

ff9.PNG

Just maybe....

Forum statistics

Threads
112,356
Messages
1,067,715
Members
146,004
Latest member
Faxify
Top