Is it possible to debug plv8 script direct from IntelIJ IDEA?

79 Views Asked by At

IntelliJ IDEA 2022.1.3 (Community Edition)

PostgreSQL 9.6

In my java project I use plv8 scripts.

Example:

var oids_per_vlan_json = JSON.parse(oids_per_vlan);

var table_name = plv8.execute("SELECT get_temp_table_name() as name")[0].name; 
plv8.elog(NOTICE, " Temp table name: " + table_name);
plv8.execute("DROP TABLE IF EXISTS " + table_name);

As you can see to see what happend in the scripts I use plv8.elog.

OK. It's work, but ... it's not very comfortable.

Is it possible to use debug in plv8 scripts?
I mean with breakpoints, Step-Into, Step-Out and so on?

0

There are 0 best solutions below