Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.182
OS: Windows Server 2019 Datacenter (64 Bit)
Build: v10.0.17763.0
Hardware: 4 vCPU 2.20 Ghz 16GB memory
I am noticing extreme delays when debugging a script that works with XML files. It sometimes takes minutes to step through the next line and when this happens a wait cursor is shown on the variables: When this happens I can see that the external script driver (32 bit as I'm running the script with V5 -32 bit) is maxing out a cpu core.
I can reproduce the issue using a very minimal example and setting a breakpoint on the line "i = $i".
Note that in the real script the delays are much longer but even this simple example delays a couple of seconds.
xmlfile1 is 120KB in size, xmlfile2 is 424KB in size (I can privately share the xml files if that helps).
Code: Select all
$xml1 = [xml](Get-Content 'xmlfile1.xml')
$xml2 = [xml](Get-Content 'xmlfile2.xml ')
foreach ($i in 1 .. 100)
{
"i = $i"
}