Eclipse的Play框架调试问题 [英] Play Framework debugging problems with Eclipse

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

问题描述

我正在研究YABE教程,并希望调试器继续工作,以查看验证码为何无法正常工作.

I am working through the YABE tutorial and would like to throw the debugger on to see why the captcha isnt working correctly.

我正在使用Eclipse和Play 1.2.

I am using Eclipse and Play 1.2.

这是尝试以以下方式运行时出现的错误:

Here is the error im getting when trying to run as:

错误:传输错误202:绑定失败:地址已在使用中 错误:JDWP传输dt_socket初始化失败,TRANSPORT_INIT(510) JDWP退出错误AGENT_ERROR_TRANSPORT_INIT(197):没有初始化传输的[../../../src/share/back/debugInit.c:690] 本机方法中的致命错误:JDWP没有初始化传输,jvmtiError = AGENT_ERROR_TRANSPORT_INIT(197)

ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

想法?

推荐答案

尝试更改Play监听的JPDA端口.看起来默认端口8000已被其他端口使用.

Try changing the JPDA port that Play listens on. It looks like the default port, 8000, is already in use by something else.

您可以通过修改"conf/application.conf"中的"jpda.port"属性来执行此操作.如果您要用来启动调试会话,请确保还修改Eclipse JPDA启动文件(由play eclipsify命令生成的启动文件).

You can do this by modifying the "jpda.port" property in "conf/application.conf". Be sure to also modify the Eclipse JPDA launch file (the one that was generated by the play eclipsify command) if that is what you are using to start the debugging session.

这篇关于Eclipse的Play框架调试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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