You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks a lot for Infiltrator! It is extremely helpful and has a very intuitive interface. Only the documentation is not yet as user friendly as the package. Below you find some of my confusions that may help to clarify the documentation.
How to use Infiltrator to debug a package?
It seems there is quite a bit of tribal knowledge how to Infiltrato to debug a package without adding it as package dependency. Unfortunately, this is not documented here.
What I gathered from discord:
using Infiltrator (maybe in startup.jl)
using Revise (maybe in startup.jl)
activate you envorinment
using YourPackage
place breakpoints in package code with Main.@infiltrate
Is this the current best practice? Having this in the section "Example Usage" would be very helpful.
if isdefined(Main, :Infiltrator)
Main.infiltrate(@__MODULE__, Base.@locals, @__FILE__, @__LINE__)
end
to infiltrate package code without any post-hoc evaluation into the module (because the functional form does not require Infiltrator to be loaded at compiletime).
Unfortunately I have no idea:
How and when I should use it (use the three lines instead of Main.@infiltrate?)
If/how I can provide a condition
What "without any post-hoc evaluation into the module (because the functional form does not require Infiltrator to be loaded at compiletime)" means :)
First, thanks a lot for Infiltrator! It is extremely helpful and has a very intuitive interface. Only the documentation is not yet as user friendly as the package. Below you find some of my confusions that may help to clarify the documentation.
How to use Infiltrator to debug a package?
It seems there is quite a bit of tribal knowledge how to Infiltrato to debug a package without adding it as package dependency. Unfortunately, this is not documented here.
What I gathered from discord:
using Infiltrator
(maybe in startup.jl)using Revise
(maybe in startup.jl)using YourPackage
Main.@infiltrate
Is this the current best practice? Having this in the section "Example Usage" would be very helpful.
Clarification needed I
The section about
@infiltrate
contains this:Unfortunately I have no idea:
Main.@infiltrate
?)Clarification needed II
I'm a bit puzzled about Auto-loading Infiltrator.jl:
using Infiltrator
in my startup? Is it doing something extra?@infiltrate
with@autoinfiltrate
?The text was updated successfully, but these errors were encountered: