PowerShell GUI Debugging Tip: Duplicate Event Handlers

I’m not a professional tester, but I am an expert at making mistakes. I take risks. I try everything. I gravitate to “corner cases” and odd circumstances. That makes me a great amateur tester and, due to a lifetime of experience with breaking things, a pretty good debugger. But, at the Omaha PowerShell User Group meeting in August […]

Read More

Debugging Modules in PowerShell Studio 2012

PowerShell Studio now makes it easier to debug and run your module projects. You now have the ability to execute and debug a module project directly from the IDE (Supported in PowerShell Studio 2012 v3.1.9 and up). Debugging a module project: When debugging (F4) or running (Ctrl + F4) a module project for the first […]

Read More

Fun with Debug Messages

In my script and function development, I often add the line $DebugPreference=”SilentlyContinue” to the beginning of my code. Throughout the script I add lines using Write-Debug that tell me what the script is doing or the value of a particular variable. This has been very helpful. When I want to see the debug messages, I set $DebugPreference to “Continue” and voila!. In PrimalScript all the messages are written to the debug panel. But I wanted more .

Read More

PowerShell and the Heisenberg Principle

While developing the PowerShell debugger for PrimalScript 2007 we tested with a large number of scripts. Pretty much anything we could lay our hands on. The following script was one of them. function AreArraysEqual($a1, $a2) {     $enum1 = $a1.GetEnumerator()     $enum2 = $a2.GetEnumerator()        #"$enum1"     while ($enum1.MoveNext() -and $enum2.MoveNext()) {       if ($enum1.Current […]

Read More

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard