*: Added server_debug to have a better experience when using a debugger #26670
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Added build option for debug build of tidb-server
Problem Summary:
When using a debugger as delve, it is hard to follow the execution and inspect some areas due to optimized build, this makes it easier to build a debug version of the server binary to run in a debugger.
What is changed and how it works?
What's Changed: Added
server_debug
make
targetHow it Works:
make server_debug
which will createbin/tidb-server-debug
Check List
Tests
Side effects
Documentation
Release note