How to Debug TiDB Source Code

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB如何进行源码调试

| username: alfred

[TiDB Usage Environment] Production Environment / Testing / PCO
[TiDB Version]
[Encountered Issues]
[Reproduction Path] What operations were performed that led to the issue
[Issue Phenomenon and Impact]

[Attachment]

Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.

| username: TiDBer_jYQINSnf | Original post link

There’s no difference from debugging other Go code, right? Use VSCode.