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

檢查這兩個選項後,局部變量再次工作! –