Title: Get-PSCallStack's Arguments script property contains no useful information · Issue #11208 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-PSCallStack's Arguments script property contains no useful information · Issue #11208 · PowerShell/PowerShell
X Title: Get-PSCallStack's Arguments script property contains no useful information · Issue #11208 · PowerShell/PowerShell
Description: The .Arguments property on the System.Management.Automation.CallStackFrame instances output by Get-PSCallStack is a script property that - I presume - is meant to reflect the arguments passed. The property isn't documented, but it seems ...
Open Graph Description: The .Arguments property on the System.Management.Automation.CallStackFrame instances output by Get-PSCallStack is a script property that - I presume - is meant to reflect the arguments passed. The ...
X Description: The .Arguments property on the System.Management.Automation.CallStackFrame instances output by Get-PSCallStack is a script property that - I presume - is meant to reflect the arguments passed. The ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11208
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-PSCallStack's Arguments script property contains no useful information","articleBody":"The `.Arguments` property on the `System.Management.Automation.CallStackFrame` instances output by `Get-PSCallStack` is a script property that - I presume - is meant to reflect the arguments passed.\r\n\r\nThe property isn't documented, but it seems to contain no useful information, seemingly containing `$null` in any non-global scope.\r\n\r\nWhile you con obtain argument information via the type-native `.InvocationInfo` property, I assume there is a purpose to `.Arguments` that it currently doesn't fulfill.\r\n\r\n\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n\u0026 { (Get-PSCallStack)[0].Arguments } 'foo' | Should -match 'foo'\r\n```\r\n\r\n# Expected behavior\r\n\r\nThe test should pass.\r\n\r\n# Actual behavior\r\n\r\nThe test fails, because `.Arguments` is `$null`:\r\n\r\n```none\r\nExpected regular expression 'foo' to match $null, but it did not match.\r\n```\r\n\r\n# Environment data\r\n\r\n\r\n```none\r\nPowerShell Core 7.0.0-preview.6\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-11-28T03:14:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/11208/PowerShell/issues/11208"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cc15ed3d-4ddf-046d-0bb3-8b42de3b9968 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2EC:399A66:F2D1DA:14B66D9:6A53B279 |
| html-safe-nonce | 5bc9f01452de941d7e598360de41870df355a153fb49c34bd341ac45efa1f8ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkVDOjM5OUE2NjpGMkQxREE6MTRCNjZEOTo2QTUzQjI3OSIsInZpc2l0b3JfaWQiOiI4MzQ1Nzk3ODUwODM2NDgwNjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 68dcd869b31007f3069c1c2884215021aa358aac6d727f67001c962c051676c4 |
| hovercard-subject-tag | issue:529669096 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11208/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3bceeee1bfbbafc2356bacd7987d20c381a587fe58d7436081ecdfa43c775c53/PowerShell/PowerShell/issues/11208 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3bceeee1bfbbafc2356bacd7987d20c381a587fe58d7436081ecdfa43c775c53/PowerShell/PowerShell/issues/11208 |
| og:image:alt | The .Arguments property on the System.Management.Automation.CallStackFrame instances output by Get-PSCallStack is a script property that - I presume - is meant to reflect the arguments passed. The ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width