Debugging Scripts
Integrated Debugger
New-UDDashboard -Title "Dashboard" -Content {
Wait-Debugger
$Data = @(
@{Dessert = 'Frozen yoghurt'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = 'Ice cream sandwich'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = 'Eclair'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = 'Cupcake'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = 'Gingerbread'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
)
New-UDTable -Data $Data -Paging -PageSize 2 -PaginationLocation 'top'
}




Logging Scripts
APIs
Jobs
Dashboards
Authentication and Authorization
Debugging Scripts from a PowerShell Console
Pausing the Script
Executing your script
Finding your process ID
Jobs
APIs
Dashboards
Authentication and Authorization
Attaching to the Process and Debugging the Runspace
Example of Connecting to API Process
Debugging with Visual Studio Code
Last updated
Was this helpful?