<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>newpops</author_name>
  <author_url>https://blog.hatena.ne.jp/newpops/</author_url>
  <blog_title>PowerShell Memo</blog_title>
  <blog_url>https://newpops.hatenadiary.org/</blog_url>
  <categories>
    <anon>MSH</anon>
  </categories>
  <description>MSHは、デバッグのための仕組みが色々用意されています。 「$DebugPreference」と「Write-Deubg」 スクリプトの処理を一時停止させ、変数の値を確認するサンプルです。 MSH C:\&gt; $DebugPreference = &quot;Inquire&quot; MSH C:\&gt; $a = 0 MSH C:\&gt; $b = 0 MSH C:\&gt; while($a -lt 10) &gt;&gt; { &gt;&gt; $b += $a &gt;&gt; if($a -eq 5){Write-Debug $b} &gt;&gt; $a++ &gt;&gt; } &gt;&gt; DEBUG: 15 Confirm Continue with this operati…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnewpops.hatenadiary.org%2Fentry%2F20050930%2Fp1&quot; title=&quot;MSHのデバッグ手法(１) - PowerShell Memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-09-30 00:00:00</published>
  <title>MSHのデバッグ手法(１)</title>
  <type>rich</type>
  <url>https://newpops.hatenadiary.org/entry/20050930/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
