dashboards.ps1file 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.
Enter-PSHostProcesscommand in the Integrated Terminal.
Get-Runspacecommand in the Integrated Terminal. You'll notice that one of the runspaces is in
Debug-Runspacecommand 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-PSUDashboardcan be used instead of
Wait-Debuggerto more easily debug aspects of your dashboard.
Debug-PSUDashboardrequires 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.