Matthew Kelly
Matthew Kelly
Hi @chagwood, If add the `global:` flag to the functions it should work: `function global:Write-ScriptRoutes {}`. I think I can make Pode do this automatically by adding the following into...
Hey @ArieHein, If you're using the internal Pode restarts, then [this page](https://badgerati.github.io/Pode/Tutorials/Restarting/Overview/) might help - when the server restarts, the main scriptblock supplied to `Start-PodeServer` won't reflect any changes made;...
I think I understand what you're after, but would you be able to give a rough code example as to what you need? For the variable content the closest I...
I think I can see what you're getting at. If it's just outputting values back to the terminal wouldn't using `Out-PodeHost` work? Such as `$Param1 | Out-PodeHost`, or `$_.Exception |...
`Out-PodeHost` is basically just `Out-Default` - it allows you to write messages/objects to the terminal the server was started in, since cmdlets like `Write-Host` don't work in runspaces.
@ili101 @fatherofinvention awesome! I played with `Enter-PSHostProcess` and `Get-Runspace` a while back but couldn't get it to work; must've been missing `Wait-Debugger`! I'll have a try myself too, and update...
Re-opening this to update the docs with debugging notes.
@fatherofinvention I have given it a shot, and it's really useful when any error aren't immediately obvious :) I've documented it use now as well in 2.9.0
When it comes to functions which deal with and return CimInstance objects, these usually come from internal modules which are auto-imported when the function is used. In these cases, the...
From what I can tell reading here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers, it's because of `-Credentials`. When the Access-Control-Allow-Credential header is true, the "*" in Access-Control-Allow-Headers is taken literally rather than as a wildcard,...