[英]Node.js debugger not working
I have express.js with ejs templating. 我有带有ejs模板的express.js。
I can see that for first request, debugger stops at break point. 我可以看到,对于第一个请求,调试器在断点处停止。
But after ejs serves page on browser, any further requests never stops at break point. 但是,在ejs在浏览器上提供页面后,任何其他请求都不会在断点处停止。
I tried lot of things in frustation -> webstorm, eclipse, node-inspector,etc 我尝试了很多令人沮丧的事情-> Webstorm,eclipse,node-inspector等
Is there some config for ejs or experss that I am missing? 我缺少一些用于ejs或expers的配置吗?
Even console.log is not printing anything. 即使console.log也没有打印任何内容。 I know flow works for sure.
我知道流程肯定有效。
Actually it was my bad. 其实这是我的坏事。
I was trying to debug js in public folder which is client side js. 我试图调试公共文件夹(客户端js)中的js。
So i have debug using chrome developer tools instead of server side debugging. 因此,我使用chrome开发人员工具进行了调试,而不是服务器端调试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.