【问题标题】:devenv.exe crash after debuggingdevenv.exe 调试后崩溃
【发布时间】:2016-09-11 12:16:16
【问题描述】:

当我在调试停止后尝试编辑源代码时,我的 Visual Studio 2015(带有 update3)崩溃了。 (它也发生在 C# WinForm、WPF 和控制台项目上)
一个月前还好……

我收到了 System.AccessViolationException 崩溃。
而且我在调试的时候发现了一些奇怪的东西:

  • 无法在我的程序中获取任何变量,即使在即时窗口中也是如此
  • 但我仍然可以获得其他信息(如线程、堆栈...)
  • 诊断工具不起作用
  • 停止调试后,.vshost.exe 仍然存在

我已经修复了Visual Studio,但错误仍然发生。


操作系统:Windows7 x64
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.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.EditAndContinue.SessionReadOnlyReason sessionReason, Microsoft.CodeAnalysis.EditAndContinue.ProjectReadOnlyReason projectReason) 未知 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(参考 System.Guid pguidCmdGuid,uint dwCmdId)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.OnDisabledEditingCommand(参考 System.Guid pguidCmdGuid,uint dwCmdId)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.InnerExec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.IntellisenseCommandFilter.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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.BraceCompletionCommandFilter.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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参考 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 () 未知 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) 未知 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) 未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.ExecuteCommandWorker (Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args, System.Action nextHandler) 未知 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler.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.IntelliSense.SignatureHelp.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler .ExecuteCommand (Microsoft.CodeAnalysis.Editor.Commands .TypeCharCommandArgs args, System.Action nextHandler) 未知 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) 未知 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 cancelToken) 未知 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) 未知 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(参考 System.Guid pguidCmdGroup,uint commandId,uint executeInformation,System.IntPtr pvaIn,System.IntPtr pvaOut,Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer,Microsoft.VisualStudio.Utilities.IContentType内容类型)未知 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(参考 System.Guid pguidCmdGroup,uint nCmdID,uint nCmdexecopt,System.IntPtr pvaIn,System.IntPtr pvaOut)未知 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(参考 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, object inParam) 未知 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(对象errorSource,System.Action调用)未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch(System.Action 操作,System.Windows.Input.TextCompositionEventArgs args)未知 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.MakeHandler.AnonymousMethod__0(对象发送者,System.Windows.Input.TextCompositionEventArgs args)未知 PresentationCore.dll! System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler (System.Delegate genericHandler, object genericTarget) 未知 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 args,bool reRaised)未知 PresentationCore.dll! System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject 发送方,System.Windows.RoutedEventArgs 参数)未知 PresentationCore.dll! System.Windows.UIElement.RaiseTrustedEvent (System.Windows.RoutedEventArgs args) 未知 PresentationCore.dll! System.Windows.Input.InputManager.ProcessStagingArea () 未知 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs 输入)未知 PresentationCore.dll! System.Windows.Input.TextCompositionManager.UnsafeCompositionComposition (System.Windows.Input.TextComposition 组合) 未知 PresentationCore.dll! System.Windows.Input.TextCompositionManager.PostProcessInput(对象发送者,System.Windows.Input.ProcessInputEventArgs e)未知 PresentationCore.dll! System.Windows.Input.InputManager.RaiseProcessInputEventHandlers (System.Windows.Input.ProcessInputEventHandler postProcessInput, System.Windows.Input.ProcessInputEventArgs processInputEventArgs) 未知 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(对象发送者,System.Windows.Input.ProcessInputEventArgs e)未知 PresentationCore.dll! System.Windows.Input.InputManager.RaiseProcessInputEventHandlers (System.Windows.Input.ProcessInputEventHandler postProcessInput, System.Windows.Input.ProcessInputEventArgs processInputEventArgs) 未知 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) 未知 PresentationCore.dll! System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(System.IntPtr hwnd,MS.Internal.Interop.WindowMessage msg,System.IntPtr wParam,System.IntPtr lParam,ref bool 处理)未知 PresentationCore.dll! System.Windows.Interop.HwndSource.OnPreprocessMessage(对象参数)未知 WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate 回调,对象 args,int numArgs)未知 WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.TryCatchWhen(对象源,System.Delegate 回调,对象 args,int numArgs,System.Delegate catchHandler)未知 WindowsBase.dll! System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority 优先级,System.TimeSpan 超时,System.Delegate 方法,对象 args,int numArgs)未知 WindowsBase.dll! System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority 优先级,System.Delegate 方法,对象 arg)未知 PresentationCore.dll! System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(参考 System.Windows.Interop.MSG 消息,参考布尔处理)未知 PresentationCore.dll! System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(参考 System.Windows.Interop.MSG 消息,参考布尔处理)未知 WindowsBase.dll! System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(参考 System.Windows.Interop.MSG 消息)未知 Microsoft.VisualStudio.Platform.WindowManagement.dll! Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.PreTranslateInput(参考 Microsoft.VisualStudio.OLE.Interop.MSG oleMsg,布尔处理)未知

【问题讨论】:

  • 您项目的“编辑并继续”功能已损坏。属于“废话”类别,这是一个非常复杂的功能。除了禁用 E+C 之外,您无能为力,因此不会出现此错误。或者对不会崩溃的以前版本使用源代码控制。也许在 32 位模式下运行您的代码,用于 x64 代码的 E+C 是相当新的。如果您离不开它,则需要致电 Microsoft 支持。
  • 由于你的Visual Studio一个月前还可以,请查看%AppData%\Microsoft\VisualStudio\14.0路径下的ActiveLog.xml。此文件将记录您操作 Visual Studio 时的所有操作。如果此文件中没有任何错误信息,建议您清除“C:\Users[user]\AppData\Local\Microsoft\VisualStudio\14.0\”下的 Visual Studio 缓存,以确认此问题是否由Visual Studio 是否缓存。
  • 我已经清除了缓存,但是没有用。虽然禁用 E+C 功能可以避免 VS 崩溃,但我仍然无法查看局部变量。可能调试功能坏了。

标签: visual-studio visual-studio-2015 visual-studio-debugging


【解决方案1】:

就像 Hans Passant 的建议一样,至少,在 TOOLS->Options->Debugging 下禁用“Edit and Continue”功能后,您已经解决了 VS 崩溃的问题。

另外,如果看不到局部变量,请检查是否与调试选项“使用托管兼容模式”和“使用原生兼容模式”有关。

【讨论】:

  • 勾选两个选项后,局部变量又起作用了!
猜你喜欢
  • 2010-12-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-20
  • 2017-06-10
  • 2021-10-01
  • 2023-03-03
相关资源
最近更新 更多