Breakpoints set during debugging don't work in Powershell 3.0


hello have kind of problem.

when set breakpoints before starting debugging of powershell script, these breakpoints work. while debug script can set new breakpoints script execution not stop @ these new breakpoints. when finish debugging script , start debugging again, new breakpoints work. doesn't matter if try in microsoft powershell ise or powergui.

on machines dynamically added breapoints (those added while debugging) works, on others doesn't. have found, works on have powershell 2.0 , doesn't work on having powershell 3.0

to clarify let's have script:

write-host "line 1"  write-host "line 2"  write-host "line 3"  write-host "line 4"  write-host "line 5"

i set breakpoints on lines 1,3 , 5. run script , stops on line 1. add breakpoint line 2. i  hit run button (f5) , script stops on line 3. ignores newly added breakpoint on line 2. add new breapoint line 4 , remove breakpoint on line 5. when continue script runs end , exits. again ignores new breakpoint on line 4 doesn't stop on line 5. removing breakpoints works adding doesn't. behaviour powershell 3.0.

when try scenario on machine having powershell 2.0, correctly stops @ breakpoints 1,2,3,4 expected.

my question is: there can on machines having powershell 3.0 can add new breakpoints while debugging scripts?


mcitp: enterprise administrator

thanks,
https://connect.microsoft.com/powershell/feedback/details/782288/disable-psbreakpoint-has-no-effect (and especialy http://www.sapien.com/blog/2013/03/27/another-powershell-v3-breakpoint-bug)
i'm talking about. haven't found sites before curious if there wrong powershell configuration of our machines. if confirmed bug i'll have live that.

btw. today have tested on windows 8.1 64b powershell v4 , bug there too.


mcitp: enterprise administrator




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file