简体   繁体   English

带有Webclipse的Eclipse-JS调试器不会在断点处停止

[英]Eclipse with Webclipse - JS debugger doesn't stop at breakpoints

I'm using Eclipse 4.5 and I've installed Webclipse 2015 CI 8 and Tomcat 8.0. 我正在使用Eclipse 4.5,并且已经安装了Webclipse 2015 CI 8和Tomcat 8.0。 I'm trying to debug an example. 我正在尝试调试一个示例。 But the debugger doesn't stop at a breakpoint. 但是调试器不会在断点处停止。 It runs through the whole file and shows 它贯穿整个文件并显示

Uncaught TypeError: $(...)[methodToCall] is not a function 未捕获的TypeError:$(...)[methodToCall]不是一个函数
at doExceptions ( http://localhost:8080/Webclipse-JSDebug-WebApp-Example/:180:42 ) 在doExceptions( http:// localhost:8080 / Webclipse-JSDebug-WebApp-Example /:180:42
at ( http://localhost:8080/Webclipse-JSDebug-WebApp-Example/:181:6 ) 在( http:// localhost:8080 / Webclipse-JSDebug-WebApp-Example /:181:6
Failed to load resource: the server responded with a status of 404 (Not Found) 加载资源失败:服务器响应状态为404(未找到)
Uncaught TypeError: $(...)[methodToCall] is not a function 未捕获的TypeError:$(...)[methodToCall]不是一个函数
at doExceptions ( http://localhost:8080/Webclipse-JSDebug-WebApp-Example/:180:42 ) 在doExceptions( http:// localhost:8080 / Webclipse-JSDebug-WebApp-Example /:180:42
at ( http://localhost:8080/Webclipse-JSDebug-WebApp-Example/:181:6 ) 在( http:// localhost:8080 / Webclipse-JSDebug-WebApp-Example /:181:6

What did I do wrong? 我做错了什么?

I've installed Webclipse 2016 and I've got the same problem. 我安装了Webclipse 2016,但遇到了同样的问题。 Anybody knows why? 有人知道为什么吗?

I'm not positive about the exceptions, however, a possible reason for skipping the breakpoints would be if you right clicked the project and chose debug as -> debug on server. 我对异常不是很满意,但是,跳过断点的可能原因是,如果右键单击项目并选择debug as->在服务器上调试,则可能会导致中断。 Instead, select debug as -> JavaScript in JavaEE Web Application. 相反,在JavaEE Web应用程序中选择debug as-> JavaScript。 This should start the server and open the application in chrome, pausing at the breakpoints. 这将启动服务器并在chrome中打开应用程序,并在断点处暂停。

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

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