简体   繁体   English

如何在使用 Gulp 时在 Chrome 识别的 IDEA 中设置断点?

[英]How can you set breakpoints in IDEA that are recognized by Chrome while using Gulp?

I'd like to be able to set a breakpoint in javascript while using Intellij IDEA, but have it recognized by chrome's devtools.我希望能够在使用 Intellij IDEA 时在 javascript 中设置断点,但让它被 chrome 的 devtools 识别。 We are using gulp for our development web server.我们正在将 gulp 用于我们的开发 Web 服务器。 Is there a way to make it so that chrome recognizes the breakpoint I set in my IDE?有没有办法让 chrome 识别我在 IDE 中设置的断点? Presuming yes please provide all of the steps required to do that.假设是,请提供执行此操作所需的所有步骤。

If you type debugger;如果您键入debugger; in your code chrome should stop at that point.在您的代码中,chrome 应该在那时停止。

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

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