【tool】vscode debug tikv 无法在断点处停住

求助! 搞了两天了,没弄明白为什么 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}"
}

同样的方式,写了个 rust demo,然后 launch 和 attach 都是可以在断点处停住的

您好,可以将问题提交到 Github.com/pingcap/tiup ,会有研发同学协助你看一下哈。

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。