远程调试从eclipse中的远程项目读取日志

时间:2014-10-15 02:25:33

标签: java eclipse debugging remote-debugging

我在eclipse中使用远程调试来连接远程服务器。

脚本为java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=60016,server=y,suspend=y -jar positioning-terminal-service-0.0.1-SNAPSHOT.jar

我的本​​地系统是windows并通过eclipse远程调试linux系统中的项目。

但项目日志未在我的本地控制台中打印,仍然在其日志文件中打印,因此很难

读取哪行数被抛出异常。我怎样才能看到我的eclipse中的堆栈异常

控制台?

远程日志就是那样

2014-10-15 10:25:37 [NioProcessor-3] INFO  [com.compass.position.terminal.handler.device.t808.T808Decoder:710] -  t808 receive msg:[7E0102002001355934823907DD46324233463031453937323444343332423335413439333530444641454141411C7E]
2014-10-15 10:25:37 [NioProcessor-3] INFO  [com.compass.position.terminal.handler.device.t808.T808CodeUtils:91] -  t808 convert message begin :[7E0102002001355934823907DD46324233463031453937323444343332423335413439333530444641454141411C7E]
2014-10-15 10:25:37 [NioProcessor-3] INFO  [com.compass.position.terminal.handler.device.t808.T808CodeUtils:132] -  t808 convert message end :[0102002001355934823907DD46324233463031453937323444343332423335413439333530444641454141411C]
=====47=====false
2014-10-15 10:25:37 [NioProcessor-3] INFO  [com.compass.position.terminal.handler.device.t808.T808Decoder:130] - =============msgid : [1, 2]
messageReceived
2014-10-15 10:25:37 [NioProcessor-3] INFO  [com.compass.position.terminal.handler.ServerHandler:137] - Received:[F2B3F01E9724D432B35A49350DFAEAAA, act=AUTH, loginDevice=LoginDevice[dt=T808, sn=4067533], response=com.compass.position.terminal.handler.device.t808.T808Response@5d9e4d25]
2014-10-15 10:25:37 [NioProcessor-3] ERROR [com.compass.position.terminal.handler.dealer.ReceiveDealer:86] - 不支持的业务类型:AUTH
2014-10-15 10:25:43 [NioProcessor-2] ERROR [com.compass.position.terminal.logic.InstructService:84] - error-instruct:

1 个答案:

答案 0 :(得分:0)

我们看不到远程控制台输入eclipse

使用ssh登录系统

ssh username@<ipaddress>
tail -f <logfile>