search

Home  >  Q&A  >  body text

node.js - webstrom调试nodejs,代码为何在断点处没有停止运行?

在webstrom中给按钮点击代码上添加了断点,然后在谷歌浏览器中访问页面,点击提交按钮,webstrom上在断点位置并没有停止,页面直接提示提交成功

webstrom断点设置如下图所示:
程序在257行并没有停止运行,无法在webstrom中调试

html代码如下图所示

PHPzPHPz2795 days ago697

reply all(3)I'll reply

  • 阿神

    阿神2017-04-17 13:49:43

    The front-end code is parsed and processed by the browser. You can find your code and corresponding lines in Chrome Sources, add a BreakPoints, or use the debugger directly in the code to block debugging with breakpoints.
    The method you use can be used for Node.js development.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 13:49:43

    Please use chrome’s breakpoint debugging tool for front-end js

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:49:43

    This is front-end code. This needs to be debugged in the browser! Cannot be debugged through node’s debugger mode

    reply
    0
  • Cancelreply