如何调试 Angular JavaScript 代码 [英] How to debug Angular JavaScript Code

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

问题描述

我正在使用 Angular JavaScript 进行概念验证.

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

如何在不同浏览器(Firefox 和 Chrome)中调试 Angular JavaScript 代码?

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

推荐答案

1.铬

要在 Chrome 中调试 AngularJS,您可以使用 AngularJS Batarang.(从最近对该插件的评论来看,AngularJS Batarang 似乎不再维护.在各种版本的 Chrome 中进行了测试,但它不起作用.)

For debugging 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 and it does not work.)

这是描述和演示的链接:Angular JS Batarang 介绍

Here is the the link for a description and demo: Introduction of Angular JS Batarang

从这里下载 Chrome 插件:用于调试 AngularJS 的 Chrome 插件

Download Chrome plugin from here: Chrome plugin for debugging AngularJS

你也可以使用 ng-inspect 来调试 angular.

You can also use ng-inspect for debugging angular.

2.火狐

对于 Firefox,在 Firebug 的帮助下,您可以调试代码.

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

也使用此 Firefox 附加组件:AngScope:Firefox 附加组件(非官方扩展由 AngularJS 团队提供)

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

3.调试 AngularJS

检查链接:调试 AngularJS

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

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