Closed zamothh closed 3 years ago
Pull Requests are not accepted against the master branch. Code to debug an issue should not be included in any published version of the module. Effort to remove verbose/debug output which could contain secret data has already been undertaken.
oups, sorry, meant to push it on the dev. Didn't know there had already been a talk on verbose/debug content. Thanks
Summary
I was trying to debug as I have issues with SAML authentication ... and I found difficult to retrieve what exactly was sent to the backend API. By adding those few line, you should now see the invoke-webrequest sent variables. To a certain extent, this can help converting any PsPas Command to direct API calls, and to also to increase debug speed. I use -verbose a lot in my own modules, each time I want to understand what is happening. note on
write-verbose ($PSBoundParameters | out-string -Width ($host.UI.RawUI.BufferSize.Width -2 ))
The-width
help fixing extra new lines with this kind of use of write-verbose, and should be keptTest Plan
Example :
Closes issues
Fixes # nothing
Closes # nothing