---
title: "Discussion on \"How to debug pytest test cases without code modifying\" | Hashnode"
description: "Discussion on \"How to debug pytest test cases without code modifying\". Everybody in python knows the power of import pdb;pdb.set_trace()  and breakpoint().\nAlas, in many cases, it is not convenient to modify the source:  project could be redeployed and your lines are gone, modified source requires additional efforts for..."
url: "https://hashnode.com/posts/how-to-debug-pytest-test-cases-without-code-modifying/62909e939a7f929c55a4438a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to debug pytest test cases without code modifying](https://dkravchenko.hashnode.dev/how-to-debug-pytest-test-cases-without-code-modifying?utm_source=hashnode&utm_medium=feed)

Everybody in python knows the power of import pdb;pdb.set\_trace() and breakpoint(). Alas, in many cases, it is not convenient to modify the source: project could be redeployed and your lines are gone, modified source requires additional efforts for...

May 27, 2022 · 4 min read · dkravchenko.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#pytest](https://hashnode.com/tag/pytest)

## Written by

[Denys Kravchenko](https://hashnode.com/@dkravchenko)

@dkravchenko

  
[View profile](https://hashnode.com/@dkravchenko)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
