如何使用Netbeans调试JavaScript代码? [英] How to debug JavaScript code with Netbeans?

查看:213
本文介绍了如何使用Netbeans调试JavaScript代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用 NetBeans 开发网络应用程序的经验。

I am not experienced in developing web apps with NetBeans.

我使用现有的源(一些HTML,JS和CSS文件)创建了一个HTML5项目,导入似乎没问题,但我没有设法调试JavaScript 代码,因为 调试项目调试文件调试测试文件菜单项始终被禁用

I created an HTML5 project with existing sources (some HTML, JS and CSS files), the import seems to be OK, but I didn't manage to debug JavaScript code, because the "Debug project", "Debug file" and "Debug test file" menu items are always disabled.

我错过了什么?

PS:我在2013年11月下载了一个新版本。

推荐答案

如果在任何带有NetBeans连接器的浏览器中运行HTML5项目,它总是在调试和运行的同时(检查工具栏中的浏览器切换器)。所以一旦你运行项目/文件,如果应该点击一些断点,它将是。因此,HTML5项目没有启用调试操作,因为它与运行操作相同。

HTML5 project is always debugging and running at the same time if you run it in any browser with NetBeans connector (check the browser switcher in toolbar). So once you run project/file, if some breakpoint should be hit, it will be. Therefore debug action is not enabled for HTML5 project, because it is the same as Run action.

基本上,这意味着您可以使用NetBeans Connector,嵌入式浏览器在Chrome中调试JS IDE,Android上的Chrome,iOS上的Safari ......

Basically it means you can debug JS in Chrome with NetBeans Connector, Embedded browser in IDE, Chrome on Android, Safari on iOS...

这篇关于如何使用Netbeans调试JavaScript代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆