LoginSignup
1
0

More than 1 year has passed since last update.

VSCodeにおいてpytestでdebugを実行した際、エラー箇所でbreakしないことについて

Posted at

課題

VSCodeにおいてpytestでdebugを実行した際、エラー箇所でbreakしないこと。
demo.gif

画像は以下URLから参照
https://stackoverflow.com/questions/62419998/how-can-i-get-pytest-to-not-catch-exceptions/62563106#62563106

解決方法

Debugの画面で、BREAKPOINTSの「User Uncaught Exceptions」にチェックボックスを入れるだけ。
image.png

ここに解決方法が書いてありました。
https://github.com/microsoft/debugpy/issues/364

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0