0

Before you suggest Debugger.jl: With Julia's Debugger.jl - How can I enter debug mode similar to Python's pdb.set_trace() or ipdb.set_trace()?

It does NOT work in the global scope. The @bp macro seems to only work inside a function, else it does nothing.

In Python, you can place import pdb; pdb.set_trace() anywhere and it brings up a debugger. What is the equivalent in Julia?

user3180
  • 1,369
  • 1
  • 21
  • 38

1 Answers1

0

You can use Infiltrator.jl.

You can put @infiltrate in global scope. Note though that then @trace and @locals will be empty (but you can inspect state of global variables by just checking them).

Bogumił Kamiński
  • 66,844
  • 3
  • 80
  • 107