Git Product home page Git Product logo

erik's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @skeletonkey. A bit about me: Go, Perl, Bash, and all-around polyglot. Trying to find the right language for the task at hand. Leader of nerds and a perpetual student.
  • ๐Ÿ‘€ Automating mundane tasks so I can return to what I enjoy!
  • ๐ŸŒฑ How to interview well ... this seems to be something that you never master ... like Texas Hold'em
  • ๐Ÿ’ž๏ธ I'll help out where I can.
  • ๐Ÿ“ซ You should reach me through issues and pull requests, but if you need to, you should be able to get a message to me at [email protected]

erik's People

Contributors

skeletonkey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

physicsdude

erik's Issues

allow indentation customization for "dumping"

added $Data::Dumper::Indent = 1; to specify my preferred Data::Dumper indentation styling
for the easiest implementation, you could simply be explicit about the indentation level being set in Erik --
$Data::Dumper::Indent = 2; (as 2 is the default level for Data::Dumper), that way the user has an idea of what they could configure without going into documentation. Or you could implement it the same you have stack_trace_limit

require Data::Dumper;
$Data::Dumper::Indent = 1;
$Data::Dumper::Maxdepth = $max_depth if $max_depth;
my $dump = Data::Dumper->Dump([$var]);
$Data::Dumper::Maxdepth = 0          if $max_depth;

stack trace limit is not working as expected

The idea behind the stack trace limit is so that if the same (initial) method gets called we don't get stack traces for each time.

However, if a method ends up calling the same method multiple time it ends up triggering the limit issue.

Here a dump output that worked after I set the limit to 99 - with it's default of 1 it didn't print out:

*** /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm [162]: get_pts_certificate
*** stack trace ****************************************************************
Level 1: Service::Ticketing::Logic::PTS - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 318 - Service::Ticketing::Logic::PTS::get_pts_certificate
Level 2: main - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 319 - Service::Ticketing::Logic::PTS::BEGIN
Level 3: main - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 319 - (eval)
Level 4: Test::Mock::Simple - /app/shared/lib/cpan/lib/perl5/Test/Mock/Simple.pm - 26 - (eval)
Level 5: Mock::Service::Ticketing::Logic::PTS - /app/shared/home/tmweb/src/tm/ss/shared-services/test/lib/perl/Mock/Service/Ticketing/Logic/PTS.pm - 10 - Test::Mock::Simple::new
Level 6: main - /app/shared/home/tmweb/src/tm/ss/shared-services/test/unit/Service/Ticketing/Logic/AtlasTest.pm - 11 - (eval)
Level 7: main - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 319 - main::BEGIN
Level 8: main - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 319 - (eval)
Level 9: main - test/unit/Service/Ticketing/Logic/Atlas.t - 3 - (eval)
Level 10: main - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 319 - main::BEGIN
Level 11: main - /app/shared/lib/perl/Service/Ticketing/Logic/PTS.pm - 319 - (eval)
*** end of stack trace *********************************************************

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.