dashboards.ps1
file will be updated. You can view your dashboard in VS Code underneath the dashboards tree view. It will show the current state of the dashboard and the framework it is using.Wait-Debugger
OnClick
event handler.Enter-PSHostProcess
command in the Integrated Terminal.Get-Runspace
command in the Integrated Terminal. You'll notice that one of the runspaces is in InBreakpoint
availability.Debug-Runspace
command and VS Code will automatically open your endpoint in the debugger. You'll be able to step through your code, view variables and issue commands against the runspace.Debug-PSUDashboard
can be used instead of Wait-Debugger
to more easily debug aspects of your dashboard. Debug-PSUDashboard
requires the PowerShell Universal VS Code extension. When placed within a dashboard, this cmdlet will trigger a modal to be show with some information about connecting to the runspace that is currently running the code you are trying to debug.