Pg_connect errors but no error given

I have
pg_connect(“host=localhost port=5432 dbname=dev_db”)
but this causes an error that halts my system but no way to capture the error. What to do?

If you are using connector - you can enable logging to get more details about the possible issue

docs.dhtmlx.com/doku.php?id=dhtm … tor:errors