The command-line arguments that you specify are not passed to the debug executable file when you enable the Debug in Zone feature in Visual Studio 2005

Symptoms

Consider the following scenario. You create a solution in Microsoft Visual Studio 2005. You enable the Debug in Zone feature. You specify command-line arguments. You press the F5 key to debug the solution. In this scenario, you receive the following message:
The current project settings specify that the project will be debugged with specific security permissions. In this mode, command line arguments are not passed to the executable. Do you want to continue debugging anyway?
If you click Yes, the command-line arguments that you specify are not passed to the debug executable file.

Cause

The Debug in Zone feature requires that you set specific security permissions. Visual Studio 2005 cannot pass command-line arguments to a debug executable file when you set the specific security permissions.

Status

This behavior is by design.
Properties

Article ID: 919827 - Last Review: Feb 16, 2017 - Revision: 3

Feedback