-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wishlist: add Devel::Peek::Dump() support #13
Comments
Thanks for the suggestion! In commit 8fe1580 this is added under the name "info variables dump". There are already other "info variables" commands. I would like to do more on validity checking of the variable name argument, but I don't know to what extent that can be done. I don't know Devel::Peek that well, should more features be offered? I am happy that Devel::Peek is part of Perl. I'm not happy that Devel::Peek::Dump uses Some side comments. Look at the commit for how easy it was to hack this in, although it is probably not complete and I should add a test. commit 21f5bba fixes the help string for the "finish" command that I noticed in the demo. Again, thanks for the NY.pm work and organizing this meetup. |
Thanks (again) to David Golden and NY.pm.
On Thu, Aug 23, 2012 at 12:22 AM, R. Bernstein [email protected]:
Capture::Tiny. :-) I suspect a patch to Devel::Peek would get accepted (though it doesn't help Thanks for a great talk. David |
I have not been successful in using Capture::Tiny here. It redirects output, but in the process the eval environment is not what is needed. The whole eval in the DB package is really fragile if not also ugly and contorting. For now, there is an "eval-print-save" branch that has this code, but in master, I've disabled this. Of course running:
works if you want the output to go to STDERR. In general though, this is not what is always desired. I'll also try to work up a patch for Devel/Peek.xs to add an optional filehandle parameter. Looking at the existing code, that seems the least invasive and backward compatible. |
On Thu, Aug 23, 2012 at 11:01 PM, R. Bernstein [email protected]:
Again, this is probably something worth asking about on #p5p and seeing David David Golden [email protected] |
Ok. Done. Will wait on resolution there on Devel::Peek before adding a command. Another thing you can do in the meantime is add a macro for this. In
With this, But if you do this, be aware that there was a bug in handling macro parameters that was just fixed 2ccb9c1 . Version 0.34 will have this fix. |
much like disassembling, it would be nice to be able to Dump variables
The text was updated successfully, but these errors were encountered: