While debugging, a message flow cannot be redeployed until it has been stopped.
While you are debugging, you might need to stop a message flow instance. For example, you might want to correct an error in your flow or source code. To do this, you must stop the flow and then redeploy it. See Debug: redeploying a message flow.
To stop message flow processing, run it to completion:
Next: