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 Posts

Latest Profile Posts

Tempted to come up with a unique spell naming system....But ''Fire Magic'' and ''Fire,Fira,Firaga'' are so easily recognizable :p
Yesterday I discovered that I can copy/paste multiple commands by holding shift. I tried this when I started developing holding ctrl and when it didn't work I just copied every single command one by one. For two years.

I am in heaven now.
All right, so lesson learned. No more complicated battle systems for me.
Whew, just finished a whirlwind of deadlines. Finally a tiny break. You know...I should go update my 2020 banner now.
image_2021-06-16_153010.png

Why are barrels to difficult? xD I feel like i Barrel...y made it....eh EHHH!? :p

Forum statistics

Threads
112,281
Messages
1,067,070
Members
145,905
Latest member
Hanayura
Top