Update debug.md
This commit is contained in:
parent
4c46407da9
commit
f1e1095a79
@ -1,9 +1,6 @@
|
||||
# Abstract
|
||||
|
||||
OceanBase is a distributed C++ database, so it is difficult to be developed, debugged and tested.
|
||||
This document describes some methods to debug OceanBase.
|
||||
|
||||
We have many ways to debug OceanBase, such as gdb, logging, etc.
|
||||
This document describes some methods to debug OceanBase. We have many ways to debug OceanBase, such as gdb, logging, etc.
|
||||
|
||||
We suggest you build OceanBase with debug mode as it is easy to debug.
|
||||
|
||||
@ -165,6 +162,8 @@ If you use gdb to debug OceanBase, it maybe cannot work normally because gdb wil
|
||||
|
||||
The specific thread of OceanBase process will hang on the point if you add a debug sync point in the code, and then you can do something to debug the process, such as attach the process by gdb, or execute some SQL commands to get some information.
|
||||
|
||||
> Debug Sync can work on release mode, so it is enabled on production envrionment.
|
||||
|
||||
## How to use
|
||||
|
||||
**Add a debug sync definition in the code**
|
||||
|
Loading…
x
Reference in New Issue
Block a user