temporal server 远程调试
所属分类 temporal
浏览量 866
下载源码编译
https://github.com/temporalio/temporal
temporal-server 编译
go build -o temporal-server ./cmd/server
配置 pg 数据库连接信息
config/development.yaml
启动 temporal-server
./temporal-server start
ps aux|grep temporal-server
temporal-server 进程打开远程调试端口
/Users/dyyx/go/bin/dlv attach $pid --headless=true --api-version=2 --listen=:2345 --log
API server listening at: [::]:2345
warning layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
info layer=debugger attaching to pid xxx
vscode 打开 temporal 工程
配置 远程debug 连接信息
temporal/.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Connect to server",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "${workspaceFolder}",
"port": 2345,
"host": "127.0.0.1"
}
]
}
run and debug 窗口
connect to server 左边绿色三角形
start debugging
开启调试
可以 以 debug 方式启动 temporal-server
dlv --listen=:2345 --headless=true --api-version=2 exec ./temporal-server start
上一篇
下一篇
temporal list namespace 调试 堆栈信息
vscode 使用技巧
go import 方式
go test 实例
quarkus qute 例子
Java 异步编程