小编k3r*_*n1c的帖子

在AngularJS应用程序中查找错误行

我刚刚开始玩AngularJS,我在下面得到了错误.

Error: Argument '?' is not a function, got Object
at assertArg (http://localhost/angular/project/scripts/vendor/angular.js:1039:11)
at assertArgFn (http://localhost/angular/project/scripts/vendor/angular.js:1049:3)
at http://localhost/angular/project/scripts/vendor/angular.js:4802:9
at http://localhost/angular/project/scripts/vendor/angular.js:4384:17
at forEach (http://localhost/angular/project/scripts/vendor/angular.js:137:20)
at nodeLinkFn (http://localhost/angular/project/scripts/vendor/angular.js:4369:11)
at compositeLinkFn (http://localhost/angular/project/scripts/vendor/angular.js:4015:15)
at compositeLinkFn (http://localhost/angular/project/scripts/vendor/angular.js:4018:13)
at publicLinkFn (http://localhost/angular/project/scripts/vendor/angular.js:3920:30)
at update (http://localhost/angular/project/scripts/vendor/angular.js:14202:11) 
Run Code Online (Sandbox Code Playgroud)

现在,我的问题是:有没有办法找到错误发生在.js文件中的行?我在angular.js文件中获取了引发异常的行号,但是有太多文件可能发生错误.

我尝试使用AngularJS Batarang,但这更适用于调试语义而不是语法错误.

谢谢.

debugging angularjs

14
推荐指数
1
解决办法
4234
查看次数

无法使用netbeans将master分支推送到git存储库

我刚刚安装了netbeans并通过ssh连接到我的git存储库.

除了推动主分支外,一切正常.每次我在master分支上进行一些更改并尝试推送分支时,我会得到这个弹出窗口:

There were errors during the push.
Open output to see more details.
Run Code Online (Sandbox Code Playgroud)

细节是

==[IDE]== Jun 30, 2012 4:29:42 PM Pushing finished.
==[IDE]== Jun 30, 2012 4:32:38 PM Pushing
git push ssh://50.57.180.187:22/var/www/netbeans +refs/heads/master:refs/heads/master
Remote Repository Updates
Branch : master
Old Id : cc6de40b3236047b0212e318f9977a7b75395177
New Id : fe8f3af403524ba5731fdf1e0b8773c4ef223840
Result : REJECTED_OTHER_REASON

Local Repository Updates
Branch : origin/master
Old Id : cc6de40b3236047b0212e318f9977a7b75395177
New Id : fe8f3af403524ba5731fdf1e0b8773c4ef223840
Result : NOT_ATTEMPTED

==[IDE]== Jun 30, 2012 4:32:43 PM Pushing finished.
Run Code Online (Sandbox Code Playgroud)

但是对于其他分支机构,一切都很好 难道我做错了什么?

编辑:远程回购不是裸露的,更多信息在这里

git branch netbeans push

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

angularjs ×1

branch ×1

debugging ×1

git ×1

netbeans ×1

push ×1