Always Interrupted by Internal SQL Statements When Debugging TiDB with dlv

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

Original topic: dlv调试TiDB时总是被内部自己发的sql语句干扰

| username: TiDBer_U58GZgGJ

Does anyone know how to solve this, or how to turn off its internal statement sending?

| username: Billmay表妹 | Original post link

Stagger the time~

| username: 程序员小王 | Original post link

Use unit testing.

| username: TiDBer_U58GZgGJ | Original post link

There’s no way to stagger it, his internal statements are continuously being sent.

| username: Defined2014 | Original post link

There is no way to stop internal SQL, but you can add a table name check at the place where you want to stop.