Add MethodInvocation trace for overload tracing by jborean93 · Pull Request #21320 · PowerShell/PowerShell

kilasuit

iSazonov

Adds a new trace source called MethodInvocation which can be used to
trace what .NET methods PowerShell invokes. This is useful for both
seeing what .NET methods the code is calling but also for seeing what
overload PowerShell has selected based on the arguments provided.

This only applies to .NET methods, ETS members are not covered by this
trace source but could potentially be added in the future.

@jborean93

@iSazonov iSazonov added the CL-General

Indicates that a PR should be marked as a general cmdlet change in the Change Log

label

Apr 14, 2025

@Tadas Tadas mentioned this pull request

Apr 23, 2025

daxian-dbw

@daxian-dbw

SeeminglyScience

Amro1984 pushed a commit to Amro1984/PowerShell that referenced this pull request

Aug 12, 2025

SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request

Dec 12, 2025