为什么不能为intellij运行js debug?

时间:2014-08-13 11:10:44

标签: java javascript google-chrome debugging

我正在使用intellij并想调试javascript。我的调试配置有“with javascript debugger”。我把断点放在javascript变量上,但我在javascript控制台上收到错误“ReferenceError:eventsArr is not defined”。

在ide我不能评估这个变量。

如何使用intellij和js console调试javascript?

屏幕:

IDE:

http://www.foto-me.ru/v.php?id=2c4d0de3efc7c42490645cc870dcefca

js console

http://www.foto-me.ru/v.php?id=b2dd3ceeb38e9443428898b4e192b2ec

感谢。

1 个答案:

答案 0 :(得分:0)

I think the refence file is missing. Add the file "_references.js" in your folder Scripts. And you have to reference all of the script files in this file.

Exemple _references.js file :

/// <autosync enabled="true" />
/// <reference path="jquery.validate.js" />
/// <reference path="respond.matchmedia.addlistener.js" />
/// <reference path="respond.js" />
/// <reference path="modernizr-2.7.1.js" />
/// <reference path="jquery.validate.unobtrusive.js" />
/// <reference path="jquery-2.1.0.js" />
/// <reference path="bootstrap.js" />