0.1.6 • Published 9 years ago

cpp-debug v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

cpp-debug

Utilities for debugging Node.js C++ Addons

Installation

$ npm install cpp-debug

Usage

Add an include_dirs section to your project's binding.gyp file so that it resembles the following:

{
  "targets": [
    {
      "target_name": "addon",
      "sources": [ "binding.cc" ],
      "include_dirs": [
        "<!(node -e \"require('cpp-debug')\")"
      ]
    }
  ]
}

Then include cpp-debug.h in your addon:

#include "cpp-debug.h"

Debug Functions

cpp-debug provides the following functions for use anywhere in your native addon code:

Return a string with a hex dump representation of the provided bytes.

std::string hexDump(const unsigned char* data, unsigned int len)

Print a hex dump representation of the given data to stdout.

void printHexDump(const unsigned char* data, unsigned int len)

License

MIT

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago