dvardumper ~color-lib
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 dvardumper;
struct MyArray
{
ubyte[4] ubyteArray;
}
struct MyStruct
{
align(1):
string f1 = "mystring";
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[4*1]: <4 bytes of data>
}
int(4) f2 = 4
void*(8) voidPointer = 0
immutable(char)[](16) f1[8*1] = "mystring"
bool(1) b = true
}
===============
Dumping var [a]
---------------
int(4) a = 6
===============
- Registered by Pavel Chebotarev
- ~color-lib released 4 years ago
- nexor/dvardumper
- MIT
- Authors:
- 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 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
19 downloads total
-
- Score:
- 0.2
- Short URL:
- dvardumper.dub.pm