下面是简单的配置在eclipse里debug Smartfox扩展程序,测试环境是在win xp里。
我安装smartfox目录为D:\Program\SmartFoxServerPRO (在安装路径中避免特殊字符和空格)
1、在文件 D:\Program\SmartFoxServerPRO\Server\conf\wrapper.conf 找到如下代码
# Java Additional Parameters
wrapper.java.additional.1=-server
wrapper.java.additional.2=-Dfile.encoding=UTF-8
wrapper.java.additional.3=-Djava.util.logging.config.file=logging.properties
直接在后面添加以下几行
# runtimedebug
wrapper.java.additional.4=-Xdebug
wrapper.java.additional.5=-Xnoagent
wrapper.java.additional.6=-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
2、制作一个bat批处理命令文件(右键-新建-文本文档 重命名为“smartfoxServer.bat”),然后复制以下代码到文件里面路径指向到wrapper.exe。
D:\Program\SmartFoxServerPRO\Server\wrapper.exe -c "D:\Program\SmartFoxServerPRO\Server\conf\wrapper.conf"
3、打开eclipse,将java project的编译目录bin目录指定到D:\Program\SmartFoxServerPRO\Server\javaExtensions下,这样可以即时编译class文件到对应目录下。
在eclipse中点击工具栏中“bug”边箭头按钮,选择“Debug Configurations... ”,找到"Remote Java Application" 并选中,然后点击 "New",按如下配置
ConnectionType: Standard (Socket Attach)
Connection Properties:
Host: localhost
Port: 8787
点击“Apply”。
4、双击新建的smartfoxServer.bat启动SmartfoxServer服务,点击“Debug”启动eclipse。
便可以设置断点调试了。
注:在测试过程发现双击smartfoxServer.bat无法启动server服务,检查发现原因批处理中空格就是命令的区分标志,所以SmartfoxServer安装路径中不可有空格(默认路径是 盘:/Program Files/..... 不要安装到Program Files目录下 )。
分享到:
相关推荐
编译后的阿里巴巴Java开发规范插件Eclipse离线安装包,从Eclipse中的InstallNewSoftware导进去就可以安装,方便内网用户使用
smartfox unity3d 客户端连接及相关事件代码
Eclipse中阿里代码规范插件,下载到本地直接安装。检查你的代码。
Alibaba的JAVA技术规范检查插件和安装说明,支持eclipse和Idea工具的插件安装
SmartFoxServer 游戏服务器端引擎
SmartFoxServer java api
阿里巴巴开发规约eclipse插件(java),便于不方便下载的用户直接使用
alibaba p3c 阿里巴巴JAVA P3C eclipse 代码规约插件 离线安装 Eclipse Help -> Install New Software... Add button ->Local select "smartfox-eclipse-plugin.zip" name [Ali-CodeAnalysis]
详细的讲解了FMS,Red5以及SmartFox---Media Server的用法,希望对大家有用!
smartfoxserver官方出品的关于如何开发大型rpg页游的教程 当然unity开发人员也可以从中借鉴参考
如标题,smart fox server源码 供大家学习和了解,版本不是最新的
用于业余无线电信标或猎狐发射器的硬件和软件,基于模块化。 重新启动 2012
flex+as3写的一款扑克游戏,该程序只是客户端,仅供学习参考.
Rubyfox :: SFSObject | | 在SmartFox的SFSObjects和Ruby哈希之间转换。安装将此行添加到您的应用程序的Gemfile中: gem 'rubyfox-sfsobject', '~> 0.8.0'然后执行: $ bundle或将其自己安装为: $ gem install ...
说明:本示例演示的是一个SmartFoxServer服务器端用户登录验证。 开发环境:Unity3d 2.6,SmartFoxServer 1.6.6,MyEclipse
该市用于网络游戏服务器端入门开发者,提供详细的关于市场上主流的服务器smartfoxserver的官方译文
IDEA个人自定义设置
smartfoxserver2x Java Server API.chm格式 历尽三个小时,用teleport下载网站的网页,用GUICHM制作成chm
smartfoxserver2x AS Client API chm 和java的server端一样。但是有com.smartfoxserver.v2.entities等几个包有脚本错误,不会影响使用。
smartfoxclient 的 jar包 smartfoxclient 的 jar包 smartfoxclient 的 jar包