- Notifications
You must be signed in to change notification settings - Fork 79
Description
Following in the vscode debugger, I found where the Node inspector gets confused if a constructor is an accessor rather than data property. In something/internal/util/inspect.js I see
constdescriptor=ObjectGetOwnPropertyDescriptor(obj,'constructor');if(descriptor!==undefined&&typeofdescriptor.value==='function'&&descriptor.value.name!==''&&tmpinstanceofdescriptor.value){@bmeck@michaelfig@kumavis@kriskowal Where do I find the actual source for this, so I can file a PR to fix this to work with constructors than have been made accessors in order to work around the override mistake?
@kumavis this is why {errorTaming: 'unsafe', consoleTaming: 'unsafe'} causes the built-in node console to print those errors as {}. Try changing to {errorTaming: 'unsafe', consoleTaming: 'unsafe', overrideTaming: 'min'} and you'll see your stack traces. Try changing to
{errorTaming: 'unsafe',consoleTaming: 'unsafe',overrideTaming: 'min',stackFiltering: 'verbose',}and you'll see the full original stack traces.
Btw, I strongly recommend against {consoleTaming: 'unsafe'}. Is there a reason you want to turn that on?