antoine-levitt / exfiltrator.jl Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Thank you for Exfiltrator! This package is beautiful and is making debugging Julia so much easier for me. I have encountered a problem though that where as the basic Main.@exfiltrate
works fine from within package functions, the expanded syntax Main.@exfiltrate VARS
doesn't seem to do anything. It does work fine in test functions outside of a package.
Here's an example where it does nothing:
using Exfiltrator
module MyMod
function f(x)
Main.@exfiltrate vars
2x
end
end
MyMod.f(1)
And then there is no vars
in the Main workspace.
Hey, just as a heads up: While getting Infiltrator ready for a 1.0 release I also added an @exfiltrate
macro (ref JuliaDebug/Infiltrator.jl#35).
It works slightly different than Exfiltrators, but the idea is the same.
here is a bug I just found.
julia> function foo()
t = :doesnt_exist
@exfiltrate
end
foo (generic function with 1 method)
julia> foo()
ERROR: UndefVarError: doesnt_exist not defined
Stacktrace:
[1] top-level scope at none:1
[2] eval at ./boot.jl:331 [inlined]
[3] eval(::Expr) at ./client.jl:467
[4] setfield!!(::Module, ::Symbol, ::Symbol) at /home/peterwd/.julia/packages/Exfiltrator/3rhI7/src/Exfiltrator.jl:5
[5] macro expansion at /home/peterwd/.julia/packages/Exfiltrator/3rhI7/src/Exfiltrator.jl:9 [inlined]
[6] foo() at ./REPL[62]:3
[7] top-level scope at REPL[63]:1
I get this error inside a function. I don't have diff
as a local variable at all, which is very weird.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.