简体   繁体   中英

Catch c++ native addon cout/console messages in electron.js or node.js app

C++ native module's std::cout console message don't get printed on console once module gets build.

Is there any way to print runtime std::cout messages on console AND then we can catch those messages in electron app using node.js

How does node.js runs native module, does it run it on the same thread as a sandboxed program or on a different thread?.

std::cout<\/code>控制台消息确实会在 Node.js 中打印到控制台 - 我不知道电子.js。模块初始化和从 JavaScript 调用时的初始入口都发生在 V8 主线程中。根本没有沙箱。

"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM