Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been optimized away

后端 未结 17 2177
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 16:12

Visual Studio 2010 kills (there is no other word) data in one of the arguments of the function in the unsafe block. What could cause this error? The following message shows

17条回答
  •  孤街浪徒
    2020-11-29 17:12

    As an additional answer for those experiencing this issue when debugging an Azure websites' web app:

    When deploying from GitHub, for example, the code is compiled in Azure server optimized by default.

    I tell the server to compile in a debuggable way by setting SCM_BUILD_ARGS to /p:Configuration=Debug

    but there are more options. See this: http://azure.microsoft.com/blog/2014/05/08/introduction-to-remote-debugging-on-azure-web-sites-part-3-multi-instance-environment-and-git/

提交回复
热议问题