求助! 搞了两天了,没弄明白为什么 vscode attach/launch 两种模式下,进程都无法在断点处停住,看日志都是打下去。
attach 操作步骤:
- tiup playgound v6.2.0
- kill tikv-server
- tiup playground --kv.binpath=/xxx/xx/tikv-server v6.2.0
- vscode attach process
// attach vscode launch.json
{
"type": "lldb",
"request": "attach",
"name": "Attach tikv-server",
"program": "${workspaceRoot}/target/debug/tikv-server"
}
launch 操作步骤
- vscode launch
// launch vscode launch.json
{
"type": "lldb",
"request": "launch",
"name": "Launch tikv-server",
"program": "${workspaceFolder}/target/debug/tikv-server",
"args": [
"--addr","127.0.0.1:20160",
"--advertise-addr","127.0.0.1:20160",
"--status-addr","127.0.0.1:20180",
"--pd","http://127.0.0.1:2379",
"--config","/root/.tiup/data/TGRw5sb/tikv-0/tikv.toml",
"--data-dir","/root/.tiup/data/TGRw5sb/tikv-0/data",
"--log-file","/root/.tiup/data/TGRw5sb/tikv-0/tikv.log"
],
"cwd": "${workspaceFolder}"
}