# A Python-like breakpoint

**URL:** <https://discourse.julialang.org/t/a-python-like-breakpoint/76998>\
**Category:** General Usage\
**Tags:** debugging\
**Created:** [February 23, 2022, 10:48pm UTC](https://discourse.julialang.org/t/a-python-like-breakpoint/76998 "2022-02-23T22:48:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrobc1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/astrobc1/32/45632_2.png) [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Post date:** [February 23, 2022, 10:48pm UTC](https://discourse.julialang.org/t/a-python-like-breakpoint/76998/1 "2022-02-23T22:48:59Z")

</div>

What’s the easiest way to implement/utilize a Python-like breakpoint? I know of Debugger.jl and the @bp macro, and it seems Julia has the _potential_ to be far more powerful than Python’s breakpoint(), but I can’t figure out how to use it. For now, I would like the ability to write @bp anywhere in my script (top level, inside a function, not structs) and run the file as julia filename.jl or include(“filename.jl”) from a terminal (not an IDE).

---

<div class="post-metadata">

**Author:** ![rejuvyesh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rejuvyesh/32/91_2.png) [@rejuvyesh](https://discourse.julialang.org/u/rejuvyesh)\
**Post date:** [February 24, 2022, 12:16am UTC](https://discourse.julialang.org/t/a-python-like-breakpoint/76998/2 "2022-02-24T00:16:08Z")

</div>

I think you are looking for Infiltrator.jl ?

---

<div class="post-metadata">

**Author:** ![astrobc1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/astrobc1/32/45632_2.png) [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Post date:** [February 24, 2022, 1:17am UTC](https://discourse.julialang.org/t/a-python-like-breakpoint/76998/3 "2022-02-24T01:17:22Z")

</div>

Thanks, yes, right now that seems to accomplish what I’d like! It’s interesting I have to prepend methods with Main, but otherwise I can print and plot local variables. I hope someday the utility of infiltrator finds its way into a single package for debugging. For me this is easily the best aspect of python, especially in data science.
