<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gingakyo</author_name>
  <author_url>https://blog.hatena.ne.jp/gingakyo/</author_url>
  <blog_title>見よう見まねで Programmingライフ</blog_title>
  <blog_url>https://gingakyo-b.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>PowerShellで、新しいRunspaceを作って別スレッドを作った場合は、 PowerShell_ISEでも割と簡単に別スレッド側もデバッグできます。 その手順のメモです。 Enter-PSHostProcessやDebug-Runspaceで検索すると、参考ページがたくさん見つかります。 デバッグの手順 実際のキャプチャ画面です*1。 アタッチしたときのデバック画面 プログラムがアイドル状態になっているとアタッチしやすいので、ソースを書き換えてよい状況なら、Wait-Debugger文を書くのが分かり易いと思います。 止めたい箇所にWait-Debugger文を書く コンソール画面など…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgingakyo-b.hatenablog.com%2Fentry%2F2026%2F04%2F11%2F162301&quot; title=&quot;PowerShell_ISEで別Runspaceをデバックする - 見よう見まねで Programmingライフ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/g/gingakyo/20260407/20260407013826.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-11 16:23:01</published>
  <title>PowerShell_ISEで別Runspaceをデバックする</title>
  <type>rich</type>
  <url>https://gingakyo-b.hatenablog.com/entry/2026/04/11/162301</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
