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
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.
The text was updated successfully, but these errors were encountered:
Ah, that's right, that's because global x only declares x global within the current module? In that case the setfield!! function should be used, as in the exfiltrate() method: https://github.com/antoine-levitt/Exfiltrator.jl/blob/master/src/Exfiltrator.jl. If you're motivated enough to make a PR that'd be great, otherwise I'll get to it eventually (but no promises on when)
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 syntaxMain.@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:
And then there is no
vars
in the Main workspace.The text was updated successfully, but these errors were encountered: