If no breakpoints are set when debugging is started, it is not possible to set or remove breakpoints before pausing. Doing so does not result in functional breakpoints. If breakpoints have been set before debugging is started, more can be added or removed during debugging.
Additionally, not having set a breakpoint results in a "target is executing error".
In general, breakpoints cannot be set while program is running.
Most straightforward workaround would be to disable setting breakpoints while program is running.
If no breakpoints are set when debugging is started, it is not possible to set or remove breakpoints before pausing. Doing so does not result in functional breakpoints. If breakpoints have been set before debugging is started, more can be added or removed during debugging.
Additionally, not having set a breakpoint results in a "target is executing error".
In general, breakpoints cannot be set while program is running.
Most straightforward workaround would be to disable setting breakpoints while program is running.