debugging extremely slow

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 3 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 am

debugging extremely slow

Post by remkow »

Product, version and build:
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:
Screenshot1.png
Screenshot1.png (23.71 KiB) Viewed 7823 times
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"	
}
PowerShellStudio.gif
PowerShellStudio.gif (2.01 MiB) Viewed 7823 times
User avatar
Alexander Riedel
Posts: 8473
Last visit: Tue Mar 19, 2024 1:15 am
Answers: 19
Been upvoted: 37 times

Re: debugging extremely slow

Post by Alexander Riedel »

Is this a 2020 trial version? According to our records you have a 2017 version.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 am

Re: debugging extremely slow

Post by remkow »

That's correct, I am considering purchasing 2020 version. Am pleased to see the many improvements but TBH this is quite a show stopper
User avatar
Alexander Riedel
Posts: 8473
Last visit: Tue Mar 19, 2024 1:15 am
Answers: 19
Been upvoted: 37 times

Re: debugging extremely slow

Post by Alexander Riedel »

Just making sure we look at the correct version. I understand that this is a problem, we are looking into it.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8473
Last visit: Tue Mar 19, 2024 1:15 am
Answers: 19
Been upvoted: 37 times

Re: debugging extremely slow

Post by Alexander Riedel »

We can not reproduce this type of behavior. Can you verify this behaves the same way on this machine *without* using xml files? Maybe just using text files?
We are trying to determine where the actual delay on your machine would happen.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 am

Re: debugging extremely slow

Post by remkow »

Without XML files it seems to work just fine, response is instantaneously.
Tested like this:

Code: Select all

$test1 = Get-Content 'c:\Temp\xmlfile1.xml'
$test2 = Get-Content 'c:\Temp\xmlfile2.xml'
foreach ($i in 1 .. 100)
{
	"i = $i"
}
changing it back to this:

Code: Select all

$test1 = [xml](Get-Content 'c:\Temp\xmlfile1.xml')
$test2 = [xml](Get-Content 'c:\Temp\xmlfile2.xml')
foreach ($i in 1 .. 100)
{
	"i = $i"
}
slowness is back...
User avatar
Alexander Riedel
Posts: 8473
Last visit: Tue Mar 19, 2024 1:15 am
Answers: 19
Been upvoted: 37 times

Re: debugging extremely slow

Post by Alexander Riedel »

Hmm, well, as files get bigger obviously it can slow it down, but even with some really huge files it is not like anything you see.
Would it be possible to have your files? Maybe there is something to the specific structure.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 am

Re: debugging extremely slow

Post by remkow »

Yes I am happy to share the files privately, where can I send or upload them?
User avatar
Alexander Riedel
Posts: 8473
Last visit: Tue Mar 19, 2024 1:15 am
Answers: 19
Been upvoted: 37 times

Re: debugging extremely slow

Post by Alexander Riedel »

You can upload them here: https://www.sapien.com/support/upload
Please zip them. Thank you!
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 am

Re: debugging extremely slow

Post by remkow »

Done!
This topic is 3 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.