NodeJs: Chrome inspector can map source but unable to debug on original source

好久不见. 提交于 2021-01-05 07:47:16

问题


I have attached chrome inspector to a NodeJS process and see that Chrome can detect the running built source code ( /dist folder ) and also correctly mapped the source code ( /src folder ) to the built source code

However, Whenever I put a debug point in the original source code (/src) , the debugging point is set to the correct line in the built (/dist) version instead and I can only debug the with the built version but not the original source code

The situation can be seen in the picture Did I do something wrong? This is a follow up to the previous question which involve VS Code Debugger, in the case of VS Code, they can not even detect the original source or sourcemap!

来源:https://stackoverflow.com/questions/65141191/nodejs-chrome-inspector-can-map-source-but-unable-to-debug-on-original-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!