Hi I am a noob in C++ trying to modify an existing native node module.
I am trying to add couts inside the module to print info I think is useful for me.
NAN_METHOD(Context2d::SetFillRule){
Context2d *context = Nan::ObjectWrap::Unwrap<Context2d>(info.This());
cairo_t *ctx = context->context();
String::Utf8Value str(info[0]);
cout << "set method called";
...
}
The previous method is working but the cout is never shown. Is it lost/shown during the node-gyp build? Have I done something wrong? is there a way to accomplish it?