Whether you are debugging locally or remotely, terminating immediately ends a debug session, and the program that you are debugging does not run to completion.
To terminate a debug session:
To terminate all debug sessions, right-click in the Debug view and choose Terminate All from the pop-up menu.
If you have terminated one or more sessions and want to remove them from the Debug view, right-click in the Debug view and choose Remove All Terminated from the pop-up menu.