如何调试JavaScript的角度code [英] How to debug Angular JavaScript Code

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

问题描述

我正在使用的JavaScript角概念证明。

I am working on a proof of concept using Angular JavaScript.

如何调试在不同的浏览器的JavaScript角code(Firefox和Chrome)?

How to debug the Angular JavaScript code in different browsers (Firefox and Chrome) ?

推荐答案

1。 Chrome浏览器

有关调试AngularJS中的 Chrome浏览器您可以使用 AngularJS Batarang
(从上插件最近的评论好像不再被维护AngularJS Batarang。经测试,在浏览器不工作的各个版本)

For Debug AngularJS in chrome you can use AngularJS Batarang. (From recent reviews on the plugin it seems like AngularJS Batarang is no longer being maintained. Tested in various versions of chrome does not work)

下面是描述和演示的链接:

Here is the Link for description and Demo:

角JS Batarang 简介

下载Chrome插件:<一href=\"https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en\">chrome插件调试AngularJS

Download chrome plugin from here: chrome plugin for debug AngularJS

您也可以参考以下链接: NG-书:调试AngularJS

You can also refer this link: ng-book: Debugging AngularJS

您还可以使用NG-检查用于调试的角度。

You can also use ng-inspect for debugging angular.

2。火狐

对于火狐的帮助下萤火虫您可以调试code。

For Firefox with the help of Firebug you can debug the code.

此外,使用此Firefox附加组件: AngScope:附加组件火狐(不是官方扩展由AngularJS队)

Also use this Firefox Add-Ons : AngScope: Add-ons for Firefox (Not official extension by AngularJS Team)

3。调试AngularJS :检查链接:调试AngularJS

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

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