Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session state hints #1169

Merged
merged 7 commits into from
Dec 16, 2018
Merged

Session state hints #1169

merged 7 commits into from
Dec 16, 2018

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Dec 16, 2018

Add debugging output that captures all session states and describes them by which module they come from or where we captured them. Based on the output it is then easy to see in which scope the code is invoked and makes debugging problems easy. It also shows how deep in the session state we are running. So given a scripblock $sb = {} invoking it like this &$sb would report 0 scopes deep, and &{ &{ &{ &$sb } } } would report 3 scopes deep. The output is disabled by default, and can be enabled by providing @{ Experimental = $true; ShowScopeHints = $true } Pester option to Invoke-Pester.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant