Link to Parent: PowerShell - Deep Dive and Best Practice
This article provides details and examples of using the trace command to see what is going on behind the scenes with your command.
Get-Help Trace-Command -Full
Tracing is a method that developers use to debug and refine programs. When tracing, the program generates detailed messages about each step in its internal processing.
The Windows PowerShell tracing cmdlets are designed to help Windows PowerShell developers, but they are available to all users. They let you monitor nearly every aspect of the functionality of the shell.
Get-Help Invoke-Command -Full Get-Help Invoke-Expression -Full
Invoke-Command - http://go.microsoft.com/fwlink/?LinkID=135225 Invoke-Expression - http://go.microsoft.com/fwlink/?LinkID=113343
Get-TraceSource | select -first 1 | Get-Member
PSTraceSource Class - http://msdn.microsoft.com/en-us/library/system.management.automation.pstracesource(v=vs.85).aspx
TraceSource Class - http://msdn.microsoft.com/en-us/library/system.diagnostics.tracesource(v=vs.85).aspx
Ed Price - MSFT edited Revision 9. Comment: Title edit, per guidelines
Richard Mueller edited Revision 8. Comment: Replaced RGB values with color names in HTML to restore colors
FZB edited Revision 7. Comment: eleminated double spaces
Richard Mueller edited Revision 6. Comment: Minor typos
Richard Mueller edited Revision 5. Comment: Removed (en-US) from title, added tags
jrich edited Revision 1. Comment: added TOC and 'Link to Parent'
Will Steele edited Revision 3. Comment: Added video links
Nominating this to be featured. Great article!