简体   繁体   English

节点 JS 中的 Console.log 不工作,但之前工作

[英]Console.log in node JS not work but before is working

Hello i want to know why my node.js app dosn't show in terminal console the consol.log By exemple when i run npm start normaly in terminal it show me "server is running on port 5000" but now console.log dosn't work您好,我想知道为什么我的 node.js 应用程序不会在终端控制台中显示 consol.log 例如,当我运行 npm 在终端中正常启动时,它会显示“服务器正在端口 5000 上运行”但现在 console.log 不起作用

index.js consol.log server runing index.js consol.log 服务器运行

1

or juste in my api on use jsDebugTerminal或者在我的 api 中使用 jsDebugTerminal

breakpoint console.log断点控制台.log

2 register code i know the console.log() show in terminal when is a server app and show in browser when is a front app so plz help, and sorry for my bad english注册代码我知道console.log()什么时候是服务器应用程序在终端中显示,什么时候是前端应用程序在浏览器中显示所以请帮忙,对不起我的英语不好

Are you sure the condition is working fine?你确定条件正常吗?

Try: Before the condition.尝试:在条件之前。

console.log(user)

problem solved there is a require of an obfuscated folder which blocks the console.log in the index.js file问题已解决,需要一个混淆文件夹,该文件夹会阻止 index.js 文件中的 console.log

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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