NodeJS Module Console

Hey guys,

Im using the benefits of NodeJS with require()/modules.export.

But for some reason debugger; and console.log(...) doesn't work on this scripts, but outter it work well.

upload_2019-3-30_23-37-25.png


upload_2019-3-30_23-38-5.png


He call connect() method and do what is on it like constructor to but debugger and console.log() not works. I don't know if is a limitation of framework or what, how I solve it? If there are something that will solve it...
Solved. It is a configuration of NWJS (Node Webkit JS) that is used by RPG Maker to run the game.

Add "chromium-args": "--mixed-context" on package.json
Hey guys,

Im using the benefits of NodeJS with require()/modules.export.

But for some reason debugger; and console.log(...) doesn't work on this scripts, but outter it work well.

View attachment 112465

View attachment 112466

He call connect() method and do what is on it like constructor to but debugger and console.log() not works. I don't know if is a limitation of framework or what, how I solve it? If there are something that will solve it...
I'm sorry by the late response, but I'm having problems using export/require. I'm using RMMZ, and I'm not being able to do so. I thought NodeJS came pre-installed, but I can't export any module (I get
Uncaught SyntaxError: Unexpected token 'export' everytime). How did you do it?

Original thread: https://forums.rpgmakerweb.com/threads/nodejs-module-console.107448/