how to prevent the error of "Unable to perform this action because the process is running" when set break?

mx via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
I use vscode and gdb to debug my program. When I set a break, I get msg "Unable to perform this action because the process is running". How to prevent this kind of problem. I don't want to send ctrl-c signal.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.