添加调试点后,VS 2015崩溃 [英] VS 2015 crashes after adding a debug point

查看:82
本文介绍了添加调试点后,VS 2015崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio Enterprise 2015 - 更新3.每次添加断点时,它最近都会崩溃。我在activitylog.xml中得到以下异常:


System.Diagnostics.Tracing.EventSourceException:写入侦听器时发生错误。 ---> System.Collections.Generic.KeyNotFoundException:
字典中没有给定的键。位于System.Diagnostics.Tracing.EventSource.DispatchToAllListeners的Microsoft.Bing.Logging.EventListenerDispatcher.OnEventWritten(EventWrittenEventArgs eventData)的System.Collections.Generic.Dictionary`2.get_Item(TKey键)(Int32
eventId,Guid *) childActivityID,EventWrittenEventArgs eventCallbackArgs)---内部异常堆栈跟踪结束 - 在System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32 eventId,Guid * childActivityID,EventWrittenEventArgs eventCallbackArgs)
在System.Diagnostics.Tracing.EventSource System.Diagnostics.Tracing.EventSource.WriteImpl [T]中的.WriteToAllListeners(String eventName,EventDescriptor& eventDescriptor,EventTags标签,Guid * pActivityId,EventPayload payload)(String eventName,EventSourceOptions&
options,T& data,Guid System.Windows.Input.Tracing.StylusTraceLogg上的System.Diagnostics.Tracing.EventSource.Write [T](String eventName,EventSourceOptions选项,T数据)中的* pActivityId,Guid * pRelatedActivityId)系统中的System.Windows.Input.PenThreadPool.GetPenThreadForPenContextHelper(PenContext penContext)上的System.Windows.Input.Tracing.StylusTraceLogger.LogReentrancy(String
functionName)中的er.Log [T](字符串标记,T数据)。 Windows.Input.PenThreadPool.GetPenThreadForPenContext(PenContext penContext)位于System.Windows.Input.PenContext.Enable()的System.Windows.Input.PenContexts.Enable()
,位于System.Windows.Input.StylusWisp.WispLogic。在System.Wind.Interop.HwndSource的System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters
参数)的System.Windows.Interop.HwndStylusInputProvider..ctor(HwndSource源)中的RegisterHwndForInput(InputManager inputManager,PresentationSource inputSource)。 System.Windows.Controls上的System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.BuildWindow(Int32 x,Int32 y,Visual placementTarget,Boolean transparent,HwndSourceHook hook,AutoResizedEventHandler
handler)中的.ctor(HwndSourceParameters参数)。 Primitives.Popu在System.Windows的System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d,DependencyPropertyChangedEventArgs
e)的System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)中的p.BuildWindow(Visual targetVisual)。 DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs E)在System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs E)在System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs
参数)在System.Windows.DependencyObject.UpdateEffectiveValue(entryIndex entryIndex,DependencyProperty的DP, PropertyMetadata元数据,EffectiveValueEntry oldEntry,EffectiveValueEntry& System.Windows.DependencyObject.SetValueCommon中的newEntry,Boolean coerceWithDeferredReference,Boolean coerceWithCurrentValue,
OperationType operationType)(DependencyProperty dp,Object value,PropertyMetadata metadata,Boolean coerceWithDeferredReference,Boolean coerceWithCurrentValue,OperationType operationType,Boolean isInternal)
at Microsoft.VisualStudio.Editor.Implementation.TextMarkerGlyph.InitUserControl(VsTextMarkerTag标记,IWpfTextViewLine行,IWpfTextView textView,IWpfTextViewMargin glyphMargin)中的System.Windows.DependencyObject.SetValue(DependencyProperty dp,Object value)
at Microsoft.VisualStudio.Editor。 Implementation.TextMarkerGlyph..ctor(VsTextMarkerTag标签,双长度,IWpfTextViewLine线,IWpfTextView TextView的,IWpfTextViewMargin glyphMargin)在Microsoft.VisualStudio.Editor.Implementation.TextMarkerGlyphFactory.GenerateGlyph(IWpfTextViewLine
线,IGlyphTag标签)在Microsoft.VisualStudio。 Text.Editor.Implementation.CanvasAndGlyphFa Microsoft.VisualStudio.Text.Editor.Implementation中的Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMarginVisualManager`1.AddGlyph(TGlyphTag标记,SnapshotSpan
span)上的ctory`1.GenerateGlyph(IWpfTextViewLine行,ITag标记)。 GlyphMargin`1.RefreshGlyphsOver(ITextViewLine textViewLine)at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMargin`1.OnBatchedTagsChanged(Object sender,BatchedTagsChangedEventArgs e)at
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent [TArgs ](对象发送者,EventHandler`1 eventHandlers,TArgs args)



尝试了以下内容:


尝试以下,没有任何效果:


1.       
通过"添加/删除程序"修复安装


< p style ="margin:0px 0px 8px 30px; text-indent:-0.25in"> 2.       
devenv / resetsettings


3.       
devenv / resetuserdata


4.       
devenv / resetskippkgs


5.       
devenv / safemode


6.       
已卸载并重新安装。


7.       
已卸载所有扩展程序。


解决方案

嗨SadhikaV2,


只是为了清楚地解决这个问题:


(1)你能否在之前添加断点?


(2)是否只是特定的应用程序有这个问题或所有项目?


如果之前运行良好,请检查您是否在VS IDE或Windows环境中安装某些扩展工具或加载项,可能这个问题与某些工具。


但是如果只是特定的应用程序有这个崩溃的问题,我建议你清理项目输出文件,如bin\debug,.suo文件,然后重新打开.xxproj文件,清理并构建解决方案,再次添加断点。


或者您可以创建一个新的空白解决方案,然后将所有项目文件添加到其中,访问结果。


但是如果所有项目都有这个问题,我想我们会考虑VS IDE设置环境,当然,如果你有其他VS机器,请调试它,这可以帮助我们缩小这个问题。


最好的问候,


杰克


I am using Visual Studio Enterprise 2015 - Update 3. It recently started crashing every time I added a break point. I get the following exception in activitylog.xml:

System.Diagnostics.Tracing.EventSourceException: An error occurred when writing to a listener. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Microsoft.Bing.Logging.EventListenerDispatcher.OnEventWritten(EventWrittenEventArgs eventData) at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32 eventId, Guid* childActivityID, EventWrittenEventArgs eventCallbackArgs) --- End of inner exception stack trace --- at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32 eventId, Guid* childActivityID, EventWrittenEventArgs eventCallbackArgs) at System.Diagnostics.Tracing.EventSource.WriteToAllListeners(String eventName, EventDescriptor& eventDescriptor, EventTags tags, Guid* pActivityId, EventPayload payload) at System.Diagnostics.Tracing.EventSource.WriteImpl[T](String eventName, EventSourceOptions& options, T& data, Guid* pActivityId, Guid* pRelatedActivityId) at System.Diagnostics.Tracing.EventSource.Write[T](String eventName, EventSourceOptions options, T data) at System.Windows.Input.Tracing.StylusTraceLogger.Log[T](String tag, T data) at System.Windows.Input.Tracing.StylusTraceLogger.LogReentrancy(String functionName) at System.Windows.Input.PenThreadPool.GetPenThreadForPenContextHelper(PenContext penContext) at System.Windows.Input.PenThreadPool.GetPenThreadForPenContext(PenContext penContext) at System.Windows.Input.PenContext.Enable() at System.Windows.Input.PenContexts.Enable() at System.Windows.Input.StylusWisp.WispLogic.RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource) at System.Windows.Interop.HwndStylusInputProvider..ctor(HwndSource source) at System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters parameters) at System.Windows.Interop.HwndSource..ctor(HwndSourceParameters parameters) at System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.BuildWindow(Int32 x, Int32 y, Visual placementTarget, Boolean transparent, HwndSourceHook hook, AutoResizedEventHandler handler) at System.Windows.Controls.Primitives.Popup.BuildWindow(Visual targetVisual) at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall) at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Microsoft.VisualStudio.Editor.Implementation.TextMarkerGlyph.InitUserControl(VsTextMarkerTag tag, IWpfTextViewLine line, IWpfTextView textView, IWpfTextViewMargin glyphMargin) at Microsoft.VisualStudio.Editor.Implementation.TextMarkerGlyph..ctor(VsTextMarkerTag tag, Double length, IWpfTextViewLine line, IWpfTextView textView, IWpfTextViewMargin glyphMargin) at Microsoft.VisualStudio.Editor.Implementation.TextMarkerGlyphFactory.GenerateGlyph(IWpfTextViewLine line, IGlyphTag tag) at Microsoft.VisualStudio.Text.Editor.Implementation.CanvasAndGlyphFactory`1.GenerateGlyph(IWpfTextViewLine line, ITag tag) at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMarginVisualManager`1.AddGlyph(TGlyphTag tag, SnapshotSpan span) at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMargin`1.RefreshGlyphsOver(ITextViewLine textViewLine) at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMargin`1.OnBatchedTagsChanged(Object sender, BatchedTagsChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)

Tried the following already:

Tried the following, nothing has worked:

1.       Repaired the installation through "Add/Remove Programs"

2.       devenv /resetsettings

3.       devenv /resetuserdata

4.       devenv /resetskippkgs

5.       devenv /safemode

6.       Uninstalled and reinstalled.

7.       Uninstalled all extensions.

解决方案

Hi SadhikaV2,

Just to make this issue clearly:

(1) Could you add the breakpoint before?

(2) Whether just the specific app has this issue or all project?

If it worked well before, please check that whether you install certain extension tools or add-ins in your VS IDE or windows Environment, maybe this issue was related to certain tool.

But if just the specific app has this crashed issue, I suggest you clean up the project output files like bin\debug, .suo file, and then re-open the .xxproj file, clean and build the solution, add the breakpoint again.

Or you could create a new blank solution, and then add all project files to it, visit the result.

But if all projects have this issue, I think we would think about the VS IDE setup Environment, of course, if you have other VS machine, please also debug it which could help us narrow down this issue.

Best Regards,

Jack


这篇关于添加调试点后,VS 2015崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆