This repository has been archived on 2026-08-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
zq/30.资源/32-技术积累/UE引擎/TS开发/笔记:UE5 TS开发2-调试.md
starmen1265 ea9a5c3b3f 初始提交:知识库工作区
- 00.收件箱
- 01.待办
- 10.项目
- 20.领域
- 30.资源
- 40.归档
- 50.模板
2026-03-03 18:25:09 +08:00

717 B

全局安装typescript npm install typescript -g 在vscode ctrl+shift+b生成launch.json,删掉无用的部分,只保留下面内容

{
            "type": "node",
            "request": "attach",
            "name": "Attach",
            "port": 8081,
            "sourceMaps": true,
            "skipFiles": [
                "<node_internals>/**"
            ],
        }

特别注意: 编辑器设置中的默认端口8080是给puerts给编辑器开的虚拟机,我们在gameinstance里面写的不是同一个虚拟机。这里要换一个端口,用8081,GameInstance里面也用8081

参考 https://github.com/Tencent/puerts/issues/993