Tips and Tricks on console.log (consoleDebug) [solved]

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 !
I didn't understand what your issue is.
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 🙂
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.
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.
@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 ...
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.
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 😛
Open the "sources" tab before pressing F8. The shortcut should work from there.
OMG loll
Thank you infinitely to you it works. !!!
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 👍🤘
cartoon-bone-hi.png

Original thread: https://forums.rpgmakerweb.com/threads/tips-and-tricks-on-console-log-consoledebug-solved.78942/