简体   繁体   English

“create-react-app”调试无法在WebStorm中运行

[英]“create-react-app” debugging not working in WebStorm

I recently updated my web app project to use "create-react-app" rather than a lashed-together Webpack and Babel configuration. 我最近更新了我的Web应用程序项目,使用“create-react-app”而不是捆绑在一起的Webpack和Babel配置。

Previously the debugging in WebStorm was working perfectly with the JetBrains Chrome extension. 以前,WebStorm中的调试与JetBrains Chrome扩展程序完美配合。

Now however, when I set a breakpoint in JavaScript (.jsx) files in the project it doesn't stop at the breakpoints. 然而,现在,当我在项目中的JavaScript(.jsx)文件中设置断点时,它不会在断点处停止。 but if I put a breakpoint on a in-line script in the index.html file it works and if I enable " break on exception" it works in that case. 但是,如果我在index.html文件中的内联脚本上放置一个断点,那么它可以工作,如果我启用“break on exception”,它就适用于那种情况。

I'm really confused. 我真的很困惑。 Any help or suggestions would be fantastic (it's probably something simple). 任何帮助或建议都会很棒(这可能很简单)。

here is the solution: 这是解决方案:

update webstorm to "WebStorm-EAP-171.3019.10" : 将webstorm更新为“WebStorm-EAP-171.3019.10”:
https://confluence.jetbrains.com/display/WI/WebStorm+EAP https://confluence.jetbrains.com/display/WI/WebStorm+EAP

and then follow the configuration here : https://blog.jetbrains.com/webstorm/2017/01/debugging-react-apps/ 然后按照此处的配置进行操作: https//blog.jetbrains.com/webstorm/2017/01/debugging-react-apps/

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

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