Skip to content

使用 [email protected] 断点调试 egg cluster #15

@atian25

Description

@atian25

前言

上一次的折腾参见: #14

配置

在刚发布的 vscode 1.6 release note 中, 可以解决该问题, 具体步骤:

  • 在项目中按 F5 生成 .vscode/launch.json (如果之前有, 先删除)
  • 修改生成的文件的 configurations[0] 节点, 增加以下信息
  "runtimeArgs": [
     "--nolazy", "--debug"
  ],
  "port": 5859,

image

  • 再次 F5 重启

遗留问题

  • 在 egg-development 自动重启后, 还不能自动重连
  • 但从上一次折腾中的收获, 应该是可以写个插件搞定这个事
  • 先研究下.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions