From f1e1095a793e9c6843ec1c433c715d02547a6598 Mon Sep 17 00:00:00 2001 From: wangyunlai Date: Fri, 14 Jul 2023 09:24:48 +0800 Subject: [PATCH] Update debug.md --- docs/debug.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/debug.md b/docs/debug.md index 5ef699481..2e704e0ab 100644 --- a/docs/debug.md +++ b/docs/debug.md @@ -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**