Skip to content

Virtual properties are not getting listed #34

Description

I am not sure if this is a bug in the debugger extension or a limitation of Duktape itself, but it seems that virtual properties, defined like below, are not getting listed during object inspection in variables/watch windows.

duk_push_string(ctx, propertyName);
duk_push_c_function(ctx, getterFunction, 0);
duk_push_c_function(ctx, setterFunction, 1);
duk_def_prop(ctx, -4, DUK_DEFPROP_HAVE_GETTER | DUK_DEFPROP_HAVE_SETTER);

It is possible to inspect such properties, but they need to be explicitly referenced in the watch window or the debug console (e.g. obj.myVirtualProperty).

I think it would make sense if virtual properties were listed in the same way as regular ones.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions