dvardumper 0.0.1

Variable dumper


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

dvardumper

Variable dumper for D

Usage example

import vardumper.d;

struct MyArray
{
    ubyte[4] ubyteArray;
}

struct MyStruct
{
    align(1):

    string f1;
    int f2 = 4;
    bool b = true;
    MyArray myArr;
    void* voidPointer;
}

int main(string[] args)
{
    auto varDumper = new VarDumper();

    auto s = MyStruct();
    varDumper.dump(s);

    int a = 6;
    varDumper.dump(a, V!a);

    return 0;
}

output:

Dumping var
---------------
app.MyStruct(33) {
  app.MyArray(4) {
    ubyte[4](4) ubyteArray: (unknown type var)
  }
  int(4) f2 = 4
  void*(8) voidPointer: (unknown type var)
  immutable(char)[](16) f1: (unknown type var)
  bool(1) b = true
}
===============
Dumping var [a]
---------------
int(4) a = 6
===============
Authors:
  • Pavel Chebotarev
Dependencies:
none
Versions:
0.0.3 2019-May-26
0.0.2 2019-May-25
0.0.1 2019-Apr-07
~master 2021-Feb-10
~files-refactoring 2021-Feb-21
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 19 downloads total

Score:
0.2
Short URL:
dvardumper.dub.pm