Cannot save a document while it is being used by TSQL debugger.
SQL Server 2005
You are debugging a stored procedure that is still open in the SQL editor. You cannot save a stored procedure document while it is being used by the SQL debugger. To save the stored procedure, you must first stop the debug process.