Fix debug tracing error with magic extents by jborean93 · Pull Request #25726 · PowerShell/PowerShell
Fixes the error when PowerShell attempts to print the debug trace line for functions generated with an invalid extent. For example PowerShell creates an extent with a column and line of 0 for things like the default class constructors. This is an issue as the trace debug line always subtracts by 1 to make the value start at 0 rather than 1. It also adds the DebuggerHidden attribute to the class default constructor to avoid confusing end users from seeing a trace line for something they did not write.
This was referenced
Jul 4, 2025
iSazonov
added
the
CL-General
label
Jul 4, 2025Amro1984 pushed a commit to Amro1984/PowerShell that referenced this pull request
Aug 12, 2025SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request
Dec 12, 2025Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters