@@ -53,14 +53,10 @@ private void DebuggerEvents_OnEnterBreakMode(dbgEventReason Reason, ref dbgExecu
5353
5454 public static bool IsBreakMode
5555 {
56- get => Debugger . IsBreakMode ;
56+ get => Instance . debugger . IsBreakMode ;
5757 }
5858
5959 private static ExpressionLoader Instance { get ; set ; }
60- private static Debugger Debugger
61- {
62- get { return Instance . debugger ; }
63- }
6460
6561 public static void Initialize ( GraphicalDebuggingPackage package )
6662 {
@@ -158,15 +154,15 @@ private ExpressionLoader(DTE2 dte)
158154
159155 public static Expression [ ] GetExpressions ( string name , char separator = ';' )
160156 {
161- var expr = Debugger . GetExpression ( name ) ;
157+ var expr = Instance . debugger . GetExpression ( name ) ;
162158 if ( expr . IsValid )
163159 return new Expression [ ] { expr } ;
164160
165161 string [ ] subnames = name . Split ( separator ) ;
166162 Expression [ ] exprs = new Expression [ subnames . Length ] ;
167163 for ( int i = 0 ; i < subnames . Length ; ++ i )
168164 {
169- exprs [ i ] = Debugger . GetExpression ( subnames [ i ] ) ;
165+ exprs [ i ] = Instance . debugger . GetExpression ( subnames [ i ] ) ;
170166 }
171167
172168 return exprs ;
@@ -492,7 +488,7 @@ public Loader FindByType(IKindConstraint kindConstraint, string name, string typ
492488 int kindIndex = ( int ) kind ;
493489 foreach ( LoaderCreator creator in lists [ kindIndex ] )
494490 {
495- Loader loader = creator . Create ( this , Debugger , name , type , id ) ;
491+ Loader loader = creator . Create ( this , Instance . debugger , name , type , id ) ;
496492 if ( loader != null )
497493 {
498494 if ( loadersCache != null )
@@ -511,7 +507,7 @@ public Loader FindByType(IKindConstraint kindConstraint, string name, string typ
511507 {
512508 foreach ( LoaderCreator creator in lists [ i ] )
513509 {
514- Loader loader = creator . Create ( this , Debugger , name , type , id ) ;
510+ Loader loader = creator . Create ( this , Instance . debugger , name , type , id ) ;
515511 if ( loader != null )
516512 {
517513 if ( loadersCache != null )
0 commit comments