diff --git a/Debugging/SharedDebuggerCommon/IBreakPoint.cs b/Debugging/SharedDebuggerCommon/IBreakPoint.cs index f4ddd906..b9f84ccf 100644 --- a/Debugging/SharedDebuggerCommon/IBreakPoint.cs +++ b/Debugging/SharedDebuggerCommon/IBreakPoint.cs @@ -35,6 +35,8 @@ protected CSBindBreakpoint CreateBindRequest(bool enabled, BreakpointConditionSt SyntaxNode node = location.SourceTree.GetRoot().FindNode(location.SourceSpan, true, true); bool isLambda = GetParentMethod(node.Parent) != null; + bool isLocalFunc = GetParentMethod(node.Parent) != null; + BaseMethodDeclarationSyntax method = GetParentMethod(node.Parent); string methodName = null; if (method != null) @@ -69,7 +71,7 @@ protected CSBindBreakpoint CreateBindRequest(bool enabled, BreakpointConditionSt var bindRequest = new CSBindBreakpoint(); bindRequest.BreakpointHashCode = this.GetHashCode(); - bindRequest.IsLambda = isLambda; + bindRequest.IsLambda = isLambda || isLocalFunc; bindRequest.NamespaceName = string.Join(".", nameSpaceStack); bindRequest.TypeName = className; bindRequest.MethodName = methodName; diff --git a/Debugging/VS2019 And Earlier/ILRuntimeDebugEngine/ILRuntimeDebugEngine.csproj b/Debugging/VS2019 And Earlier/ILRuntimeDebugEngine/ILRuntimeDebugEngine.csproj index 64353190..002ae35b 100644 --- a/Debugging/VS2019 And Earlier/ILRuntimeDebugEngine/ILRuntimeDebugEngine.csproj +++ b/Debugging/VS2019 And Earlier/ILRuntimeDebugEngine/ILRuntimeDebugEngine.csproj @@ -1,5 +1,6 @@  + Debug @@ -9,9 +10,11 @@ Properties ILRuntimeDebugEngine ILRuntimeDebugEngine - v4.7.1 + v4.7.2 512 + + true @@ -31,21 +34,20 @@ 4 - - ..\..\..\packages\Microsoft.CodeAnalysis.Common.1.3.2\lib\net45\Microsoft.CodeAnalysis.dll - True + + ..\..\..\packages\Humanizer.Core.2.2.0\lib\netstandard1.0\Humanizer.dll - - ..\..\..\packages\Microsoft.CodeAnalysis.CSharp.1.3.2\lib\net45\Microsoft.CodeAnalysis.CSharp.dll - True + + ..\..\..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - ..\..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.3.2\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll - True + + ..\..\..\packages\Microsoft.CodeAnalysis.Common.4.1.0\lib\netstandard2.0\Microsoft.CodeAnalysis.dll - - ..\..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.3.2\lib\net45\Microsoft.CodeAnalysis.Workspaces.Desktop.dll - True + + ..\..\..\packages\Microsoft.CodeAnalysis.CSharp.4.1.0\lib\netstandard2.0\Microsoft.CodeAnalysis.CSharp.dll + + + ..\..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.4.1.0\lib\netstandard2.0\Microsoft.CodeAnalysis.Workspaces.dll False @@ -54,35 +56,66 @@ False - - ..\..\..\packages\System.Collections.Immutable.1.1.37\lib\dotnet\System.Collections.Immutable.dll - True + + ..\..\..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll - True + + ..\..\..\packages\System.Collections.Immutable.5.0.0\lib\net461\System.Collections.Immutable.dll - - ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll - True + + + ..\..\..\packages\System.Composition.AttributedModel.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll - - ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll - True + + ..\..\..\packages\System.Composition.Convention.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll + + + ..\..\..\packages\System.Composition.Hosting.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll + + + ..\..\..\packages\System.Composition.Runtime.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll + + + ..\..\..\packages\System.Composition.TypedParts.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll - - ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll + + + ..\..\..\packages\System.IO.Pipelines.5.0.1\lib\net461\System.IO.Pipelines.dll + + + ..\..\..\packages\System.Linq.4.1.0\lib\net463\System.Linq.dll + True True - - ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll + + ..\..\..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll + + + + ..\..\..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll + + + ..\..\..\packages\System.Reflection.Metadata.5.0.0\lib\net461\System.Reflection.Metadata.dll + + + ..\..\..\packages\System.Runtime.4.1.0\lib\net462\System.Runtime.dll + True True - - - ..\..\..\packages\System.Reflection.Metadata.1.2.0\lib\portable-net45+win8\System.Reflection.Metadata.dll + + ..\..\..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll + + + ..\..\..\packages\System.Runtime.Extensions.4.1.0\lib\net462\System.Runtime.Extensions.dll + True True + + ..\..\..\packages\System.Text.Encoding.CodePages.4.5.1\lib\net461\System.Text.Encoding.CodePages.dll + + + ..\..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll + @@ -97,19 +130,27 @@ - - - - {79ef2f29-89d1-4097-986c-5e4eefe0fa33} ILRuntime + + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + +