My problem has been solved
The reason is because my company’s network seems to be blocking the "GDB server". When I disconnect from the company’s network, it will execute normally.
Although it can be used normally, I don't know if there are any ideas to improve this problem? Because this problem does not occur in other IDEs, and it will be a lot of trouble for me to work.