<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lazy_skunk</author_name>
  <author_url>https://blog.hatena.ne.jp/lazy_skunk/</author_url>
  <blog_title>ちんぱんの雑記</blog_title>
  <blog_url>https://lazy-skunk.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>VS Code で pytest をデバッグしていたら、ブレイクポイントで止まらなくなった。自分の環境ではデバッグ時にカバレッジの測定を無効にしたら止まるようになった。しばらくハマってしまったので残しておこう。 カバレッジ測定との競合 調べてみると、デバッガーとカバレッジ測定が使うトレース処理が競合し、ブレイクポイントに影響することがあるらしい。pytest-cov が入っているだけで必ず起きるわけではないらしく、測定が有効になっているかや環境にもよるみたい。 Testing Python in Visual Studio Code Debugger doesn't stop at break…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flazy-skunk.hatenablog.com%2Fentry%2F2024%2F07%2F14%2F235059&quot; title=&quot;pytest のデバッグ時にブレイクポイントが利かない原因 - ちんぱんの雑記&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>2024-07-14 23:50:59</published>
  <title>pytest のデバッグ時にブレイクポイントが利かない原因</title>
  <type>rich</type>
  <url>https://lazy-skunk.hatenablog.com/entry/2024/07/14/235059</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
