1

我试图在停止调试后编辑源代码时,我的Visual Studio 2015(与update3)崩溃。 (它也发生在C#WinForm,WPF和控制台项目上)
一个月前还好......devenv.exe调试后崩溃

我得到了一个System.AccessViolationException异常。
而且我发现了一些奇怪的调试时:

  • 不能得到任何变量在我的程序,即使在即时窗口
  • 但我仍然可以得到其他的信息(如线程,协议栈...)
  • 诊断工具无法正常工作
  • 停止调试后,<PROGRAMNAME> .vshost.exe还活着

我已经代表广播Visual Studio,但错误仍然发生。


操作系统:Windows7的64
System.AccessViolationException未处理 消息:类型发生在Microsoft.VisualStudio.LanguageServices.dll

'System.AccessViolationException' 未处理的异常在System.AccessViolationException抛出的异常:“Microsoft.VisualStudio.LanguageServices.dll' Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Implementation.EditAndContinue.VsENCRebuildableProjectImpl.OnReadOnlyDocumentEditAttempt(Microsoft.C odeAnalysis.DocumentId documentId,Microsoft.CodeAnalysis.EditAndContinue.SessionReadOnlyReason sessionReason,Microsoft.CodeAnalysis.EditAndContinue.ProjectReadOnlyReason projectReason)Unknown Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.EditAndContinue.VsENCRebuildableProjectImpl.OnEdit(Microsoft.CodeAnalysis.DocumentId documentId)未知 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractVsTextViewFilter.Microsoft.VisualStudio.TextManager.Interop.IVsReadOnlyViewNotification.OnDisabledEditingCommand(ref System.Guid pguidCmdGuid,uint dwCmdId)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.OnDisabledEditingCommand(ref System.Guid pguidCmdGuid,uint dwCmdId)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.Undo.UndoManagerCommandFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft。 VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System。IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.VerticalDetail.VerticalContentCommandFilter.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.Find.FindCommandFilter.Exec(请参阅System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.IntellisenseCommandFilter.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.BraceCompletionCommandFilter.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation。AbstractOleCommandTarget.ExecuteVisualStudio2000.AnonymousMethod__0()Unknown Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CSharp.EventHookup.EventHookupCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.DocumentationComments.AbstractDocumentationCommentCommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands .TypeCharCommandArgs args,System.Action nextHandler)unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.ExecuteCommandWorker(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)Unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.SignatureHelp.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands .TypeCharCommandArgs args,System.Action nextHandler)unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.SignatureHelpCommandHandler.ExecuteCommandWorker(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.SignatureHelpCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteReturnOrTypeCommand(Microsoft.CodeAnalysis.Editor.CommandArgs args,System.Action nextHandler,System.Threading.CancellationToken cancellationToken)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.DocumentationComments.AbstractXmlTagCompletionCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.HandlePossibleTypingCommand(Microsoft.CodeAnalysis.Editor.CommandArgs args,System.Action nextHandler,System.Action actionIfInsideActiveSpan)unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.InlineRename。RenameCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action nextHandler)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers(System.Collections.Generic.IList> commandHandlers,Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args,System.Action lastHandler)未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.Execute(Microsoft.VisualStudio.Utilities.IContentType contentType,Microsoft.CodeAnalysis.Editor.Commands。TypeCharCommandArgs args,System.Action lastHandler)未知 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteTypeCharacter(System.IntPtr pvaIn,Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer,Microsoft.VisualStudio.Utilities.IContentType contentType,System.Action executeNextCommandTarget)未知 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteVisualStudio2000(ref System.Guid pguidCmdGroup,uint commandId,uint executeInformation,System.IntPtr pvaIn,System.IntPtr pvaOut,Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer,Microsoft.VisualStudio.Utilities.IContentType contentType)未知 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.Exec(参考System.Guid pguidCmdGroup,uint commandId,uint executeInformation,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(ref System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(System.Guid cmdGroup,uint cmdID,inParam对象)Unknown Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(System.Windows.Input.TextCompositionEventArgs args)未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.DispatchTextInputEvents.AnonymousMethod__6_0(Microsoft.VisualStudio.Text.Editor.KeyProcessor p,System.Windows.Input.TextCompositionEventArgs args)未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch.AnonymousMethod__0()未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(object errorSource,System.Action call)未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch(System.Action操作,System.Windows.Input.TextCompositionEventArgs参数)未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.MakeHandler.AnonymousMethod__0(对象发件人,System.Windows.Input.TextCompositionEventArgs参数)未知 PresentationCore.dll! System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(System.Delegate genericHandler,object genericTarget)Unknown PresentationCore.dll! System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate处理程序,对象目标)未知 PresentationCore.dll! System.Windows.RoutedEventHandlerInfo.InvokeHandler(对象目标,System.Windows.RoutedEventArgs routedEventArgs)未知 PresentationCore.dll! System.Windows.EventRoute.InvokeHandlersImpl(对象源,System.Windows.RoutedEventArgs参数,bool reRaised)Unknown PresentationCore.dll! System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender,System.Windows.RoutedEventArgs args)未知 PresentationCore.dll! System.Windows.UIElement.RaiseTrustedEvent(System。Windows.RoutedEventArgs参数)未知 PresentationCore.dll! System.Windows.Input.InputManager.ProcessStagingArea()未知 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs输入)未知 PresentationCore.dll! System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(System.Windows.Input.TextComposition构图)未知 PresentationCore.dll! System.Windows.Input.TextCompositionManager.PostProcessInput(object sender,System.Windows.Input.ProcessInputEventArgs e)Unknown PresentationCore.dll! System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler postProcessInput,System.Windows.Input.ProcessInputEventArgs processInputEventArgs)Unknown PresentationCore.dll! System.Windows.Input.InputManager.ProcessStagingArea()未知 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs输入)未知 PresentationCore.dll! System.Windows.Input.TextCompositionManager.UnsafeStartComposition(System.Windows.Input.TextComposition构图)未知 PresentationCore.dll! System.Windows.Input.TextCompositionManager.PostProcessInput(object sender,System.Windows.Input.ProcessInputEventArgs e)Unknown PresentationCore.dll! System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler postProcessInput,System.Windows.Input.ProcessInputEventArgs processInputEventArgs)Unknown PresentationCore.dll! System.Windows.Input.InputManager.ProcessStagingArea()未知 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs输入)未知 PresentationCore.dll! System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport)Unknown PresentationCore.dll! System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(System.IntPtr hwnd,MS.Internal.Interop.WindowMessage msg,System.IntPtr wParam,System.IntPtr lParam,ref bool handling)UnknownCopy.dll错误 ! System.Windows.Interop.HwndSource.OnPreprocessMessage(object param)Unknown WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate回调,对象参数,int numArgs)未知 WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.TryCatchWhen(对象源,System.Delegate回调,对象参数,int numArgs,System.Delegate catchHandler)未知 WindowsBase.dll! System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority优先级,System.TimeSpan超时,System.Delegate方法,对象参数,int numArgs)未知 WindowsBase.dll! System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority优先级,System.Delegate方法,对象arg)未知 PresentationCore.dll! System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(ref System.Windows.Interop.MSG msg,ref bool handling)未知 PresentationCore.dll! System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(ref System.Windows.Interop.MSG msg,ref bool handling)Unknown WindowsBase.dll! System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(ref System.Windows.Interop.MSG msg)未知 Microsoft.VisualStudio.Platform.WindowManagement.dll! Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.PreTranslateInput(REF Microsoft.VisualStudio.OLE.Interop.MSG oleMsg,布尔处理)未知

+1

您的项目的编辑和继续功能已损坏。在“垃圾发生”类别中,这是一个非常复杂的功能。除了禁用E + C之外,你可以做的事情并不多,所以这个错误不会发生。或者将源代码控制用于不会崩溃的先前版本。也许在32位模式下运行你的代码,E + C代码是非常新的。如果没有它,您将需要致电Microsoft支持。 –

+0

由于您的Visual Studio在一个月前没事,请检查%AppData%\ Microsoft \ VisualStudio \ 14.0路径下的ActiveLog.xml。此文件将记录您在操作Visual Studio时的所有操作。如果此文件中没有任何错误消息,我建议您清除“C:\ Users \ [用户] \ AppData \ Local \ Microsoft \ VisualStudio \ 14.0 \”下的Visual Studio缓存以确认此问题是由Visual Studio缓存与否。 –

+0

我已清除缓存,但没用。尽管禁用E + C函数可以避免VS崩溃,但我仍然无法观察局部变量。也许调试功能被破坏。 –

回答

1

像汉斯帕桑特的建议,至少,你已经解决了VS坠毁后发出在工具 - >选项 - >调试下禁用“编辑并继续”功能。另外,如果您无法观察本地变量,请检查它是否与调试选项“使用托管兼容模式”和“使用本机兼容模式”相关。

enter image description here

+0

检查这两个选项后,局部变量再次工作! –