VS Code extension to introspect Node* variables

From: Сергей Соловьев <sergey(dot)soloviev(at)tantorlabs(dot)ru>
To: "pgsql-gui-dev(at)lists(dot)postgresql(dot)org" <pgsql-gui-dev(at)lists(dot)postgresql(dot)org>
Subject: VS Code extension to introspect Node* variables
Date: 2024-07-25 04:53:58
Message-ID: 11881721882631@mail.yandex.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-gui-dev

<div>Hi.</div><div>I've created VS Code extension for PostgreSQL development. <a href="https://marketplace.visualstudio.com/items?itemName=ash-blade.postgresql-hacker-helper">Link to VS Code marketplace</a>.</div><div> </div><div>During debug session, you can introspect real types of Node* variables and see</div><div>members of it according their tags. Roughly speaking, you have separate "Variables" view</div><div>(just like usual "Variables"), but when it encounters something that have tag,</div><div>it make requests to gdb: obtain NodeTag, cast to specified type and</div><div>show members of this variable using real type (members of real type).</div><div> </div><div>I've added support for List* - it displays "elements" member as array using "length" field</div><div>(according to T_List/T_IntList/T_OidList). And for PlannerInfo* it shows "simple_rte/rel_array" as</div><div>real array using "simple_rel_array_size" field.</div><div> </div><div>Also, there is button in context menu for variables - it allows to call "pprint" on selected variable.</div><div> </div><div>I would like to get feedback from you. Any suggestions on improvement or bug reports help.</div><div> </div><div>-------------------------------------</div><div>Best regards, Sergey Solovev.</div>

Attachment Content-Type Size
unknown_filename text/html 1.3 KB

Browse pgsql-gui-dev by date

  From Date Subject
Previous Message John Dempster 2023-09-08 13:11:38 Free PostreSQL GUI: qStudio