Tag: eclipse

节点和ChromeDevTools的V8版本?

我的主要问题是: 我从节点0.4.10运行什么版本的V8? 我怎么知道这个版本是否与Eclipse中的ChromeDevTools 0.2.2兼容? 背景:我几乎得到了Eclipse远程debuggingnode.js的工作 。 事实上,它适用于一个简单的“Hello World”应用程序,完美(在添加服务器代理之后),但是当我将“express”添加到组合中时,它将无法正确连接。 Eclipse的错误是: 在“debugging会话初始化:远程NodeJS”期间发生内部错误。 callback中发生exception …我追溯到这个源代码的第61行(感谢“发生”的拼写错误)。 在继续之前,我想消除版本歪斜的可能性。 编辑:挖出错误日志堆栈跟踪。 嗯,也许我有一个编码问题在我的服务器代理? java.lang.RuntimeException: Exception occured in callback at org.chromium.sdk.CallbackSemaphore.tryAcquire(CallbackSemaphore.java:61) at org.chromium.sdk.CallbackSemaphore.tryAcquireDefault(CallbackSemaphore.java:29) at org.chromium.sdk.internal.JavascriptVmImpl.getScripts(JavascriptVmImpl.java:33) at org.chromium.debug.core.model.VProjectWorkspaceBridge.reloadScriptsAtStart(VProjectWorkspaceBridge.java:121) at org.chromium.debug.core.model.LaunchInitializationProcedure.execute(LaunchInitializationProcedure.java:80) at org.chromium.debug.core.model.LaunchInitializationProcedure.access$0(LaunchInitializationProcedure.java:64) at org.chromium.debug.core.model.LaunchInitializationProcedure$1.run(LaunchInitializationProcedure.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.Exception: Exception saved from callback at org.chromium.sdk.CallbackSemaphore.callbackDone(CallbackSemaphore.java:72) at org.chromium.sdk.internal.DebugSession$ScriptLoader$2.callbackDone(DebugSession.java:276) at org.chromium.sdk.internal.tools.v8.BaseCommandProcessor.callThemBack(BaseCommandProcessor.java:136) at org.chromium.sdk.internal.tools.v8.BaseCommandProcessor.processIncoming(BaseCommandProcessor.java:103) at org.chromium.sdk.internal.tools.v8.V8CommandProcessor.processIncomingJson(V8CommandProcessor.java:109) at org.chromium.sdk.internal.StandaloneVmImpl$4.messageReceived(StandaloneVmImpl.java:108) […]

新的node.js express项目在eclipse中是空的

我正在尝试在eclipse中打开一个node.js项目。 我已经安装了nodeclipse插件以及express和node.js. 现在,当我去尝试创build一个新的“node.js快速项目”,我得到一个空的项目,出现以下错误: Node.js executable can't be found! /Users/rajesh/Documents/eclipse/configuration/org.eclipse.osgi/878/0/.cp/express/bin/express /var/folders/d1/3d45qxrd2v5cr8lmt93cd1rc0000gn/T/express-work/1416463094804/CSVReader Unexpected Exception 请问任何人,请告诉我缺less什么。 我正在使用MAC(OSX版本10.8.5)。

Eclipse node.js项目不会停在断点上

我正在玩Node.js和eclipse使用nodeclipse( 这里 )使用新安装的eclipse实例。 我已经有eclipse的经验,但是这是一个新的安装。 我一直在使用Node.js一段时间,但我想看看什么日食可以添加到我的头痛(或希望减轻(一些?)他们!)。 Node –version v0.10.22 Eclipse版本是版本:Kepler Service Release 2 Build ID:20140224-0627。 好的,所以我用New> Other ..> Nodeclipse> Node.js Express Project创build了一个新项目。 给它一个Hello World的名字,并采取了默认设置。 我更新了index.js文件来添加一些有趣的事情来添加断点: exports.index = function(req, res){ res.render('index', { title: 'Express' }); console.log( "here" ); var i=45; i = i+3; console.log( i ); }; 而且我在这个i = i + 3行上放了一个断点。 我试过运行,运行方式>节点应用程序,当我从浏览器中点击“mylclhost:3000”时,它并没有停在我的断点处。 如果我debugging为> Nodejs应用程序,它显示一个蓝色的铬图标的新面板(类似于这家伙状态发生),击中mylclhost:3000结果在404,所以我打F8继续和mylclhost:3000工程如预期的那样,但没有断点。 在Project Explorer>右键单击app.js> […]

Eclipsedebugging器“无法读取variables”

任何想法为什么Eclipse Luna不会在尝试debuggingNode项目时显示variables? 如下所示,而不是variables,我们看到“无法读取variables”

在eclipse中debuggingNode.js应用程序时并不是所有可用的源代码

我是node.js应用程序开发的新手,现在我正尝试在Eclipse中debugging一个开源项目。 我遵循https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger上的指导,并得到了debugging器运行。 我可以设置断点和评估expression式。 但是,我注意到应用程序目录中包含的许多源文件在Project文件夹中不可用。 每当我点击一个断点,然后上去那个断点的callstack,它确实给JS文件中的完整path和相关行。 但该文件的来源不加载。 任何人都知道我可以如何加载这些JS文件到Eclipse?

在hashbang行eclipse javascript语法错误

当我将一些现有的node.js代码导入到Eclipse工作区时,它会抱怨 令牌上的语法错误“无效字符”,请删除此令牌 在#! /usr/bin/env/node #! /usr/bin/env/node hashbang行。 我怎么能告诉日食忽略这个错误?

在开发node.js应用程序时,在eclipse中“types推断时发生错误”

我正在开发eclipse中的节点,并且正在进入一些非常奇怪的错误,在“错误日志”中每隔几分钟就会抛出一个错误: 信息: 'error during type inferencing' 堆栈跟踪: 'java.lang.NullPointerException at org.eclipse.wst.jsdt.core.infer.InferredAttribute.<init>(InferredAttribute.java:59) at org.eclipse.wst.jsdt.core.infer.InferredType.addAttribute(InferredType.java:125) at org.eclipse.wst.jsdt.core.infer.InferEngine.populateType(InferEngine.java:1327) at org.eclipse.wst.jsdt.core.infer.InferEngine.handlePotentialType(InferEngine.java:925) at org.eclipse.wst.jsdt.core.infer.InferEngine.visit(InferEngine.java:328) at org.eclipse.wst.jsdt.internal.compiler.DelegateASTVisitor.visit(DelegateASTVisitor.java:526) at org.eclipse.wst.jsdt.internal.compiler.ast.Assignment.traverse(Assignment.java:224) at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:584) at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:539) at org.eclipse.wst.jsdt.core.infer.InferEngine.doInfer(InferEngine.java:1772) at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.inferTypes(Parser.java:7093) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.accept(CompilationUnitProblemFinder.java:167) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.askForBinding(LookupEnvironment.java:279) at org.eclipse.wst.jsdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:249) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:2105) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getType(Scope.java:1876) at org.eclipse.wst.jsdt.core.infer.InferredType.resolveType(InferredType.java:319) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1085) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.bindArguments(AbstractMethodDeclaration.java:135) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildMethods(SourceTypeBinding.java:209) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:77) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:186) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:393) at […]

使用Eclipse作为Node.JS远程debugging器(连接被拒绝)

我已经使用Eclipse作为节点应用程序debugging器( https://github.com/joyent/node/wiki/using-eclipse-as-node-applications-debugger )尝试远程debugging节点脚本。 我的环境由一个MAC OSX(版本10.9.4)客户端组成,我成功安装了Eclipse Luna Release(4.4.0)Build ID:20140612-0600和Debain Wheezy Linux VM(VBOX 4.3.14)。 防火墙已正确configuration,并且两个环境都安装了最新的Node.JS(v0.10.31)。 我能够在MAC OSX客户端上使用Eclipse在本地成功debugging脚本,但是在尝试远程debuggingDebain Wheezy机器时出现连接故障。 *** Nodeclipse / chromedevtools无法连接到独立V8虚拟机(检查帮助(F1)和支持http://www.nodeclipse.org/#support)* 。 信息:连接被拒绝 我在Debain Wheezy机器上运行“node –debug-brk dbgtest.js”,端口号为5858.debugging器在端口5858上成功启动: tcp 0 0 127.0.0.1:5858 0.0.0.0:* LISTEN 我也尝试了简单的透明TCP代理脚本(tcpproxy.js)设置,但是它返回了相同的连接失败。 我也成功地设置了端口转发( ssh -R 5858:127.0.0.1:5858 [user] @ [Debian-Host-Name] )到Debain机器,但是这没有帮助。 任何援助将不胜感激。

添加源代码Nodeclipse

我正在用Express试验Node.js。 我正在使用Eclipse的Nodeclipse插件。 任何人都可以请我build议如何添加/链接Express(通常任何第三方模块)的源代码到Eclipse中的项目?

Node.js未定义的CSS文件

我刚刚创build了一个默认的Node.js Express项目。 index.ejs文件给我的错误: 未定义的CSS文件('/stylesheets/style.css')。 这里是index.ejs: <!DOCTYPE html> <html> <head> <title><%= title %></title> <link rel='stylesheet' href='/stylesheets/style.css' /> </head> <body> <h1><%= title %></h1> <p>Welcome to <%= title %></p> </body> </html> 以下是我认为是来自app.js文件的相关代码: var express = require('express') , routes = require('./routes') , user = require('./routes/user') , http = require('http') , path = require('path'); var app = express(); // all […]