Chinaunix首页 | 论坛 | 博客
  • 博客访问: 691581
  • 博文数量: 26
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3182
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-23 14:29
个人简介

7年游戏服务器开发,擅长c/c++,javesript,php;熟悉linux,mysql/redis,elasticsearch;开源爱好者.github : https://github.com/yuyunliuhen

文章分类

全部博文(26)

文章存档

2016年(1)

2015年(3)

2014年(3)

2013年(19)

分类: JavaScript

2014-04-26 15:53:20

    假设系统已经安装了node.js,首先需要安装node-inspector,执行
$npm -g install node-inspector
    以使用pomelo为例
$pomelo init pomelo_demo
 更改 game-server/config/servers.json
     {"id": "connector-server-1", "host": "127.0.0.1", "port": 3150, "clientPort": 3010, "frontend": true}
===》
     {"id": "connector-server-1", "host": "127.0.0.1", "port": 3150, "clientPort": 3010, "frontend": true, "args": "--debug=9876"}
or
     {"id": "connector-server-1", "host": "127.0.0.1", "port": 3150, "clientPort": 3010, "frontend": true, "args": "--debug-brk=9876"}
$cd game-server & pomelo start

$cd web-server & node app

$node-inspector --web-port=8081


--debug-brk 区别在于,启动调试后,会在入口点断点
--web-port=8081 可更改监听端口


node inspector


阅读(2704) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~