生成可以调试的Web.Debug.config

我有一个Web角色它的web.config有以下几行

  

每当我需要将该选项切换为true时,我想调试我的角色。 我是否可以仅使用debug="true"?生成调试web.config debug="true"? 在编译时我看到了转换步骤:

 Transformed Web.config using C:\data\Main\WebRole\Web.Debug.config into C:\data\Main\obj\x64\Debug\WebRole.csproj\TransformWebConfig\transformed\Web.config. 

我可以自定义上面的转换吗? 有一个指导http://msdn.microsoft.com/en-us/library/vstudio/dd465318(v=vs.100).aspx为此目的但我不知道如何为特定情况编写转换

ve defined the following transformation in the Web.Debug.Config`中ve defined the following transformation in the

     

我仍然无法调试并要求手动更改值

从源代码运行/调试时,不使用web.debug.config: 使用Visual Studio web.config转换进行调试

Web.config设置debug="true"并使用Web.release.config删除它更Web.release.config

示例Web.Release.Config: