Database connection 'valid' but queries timing out

As per the title. Timing out is a rather frustrating problem, because I’m not seeing any actual errors besides that, which makes troubleshooting a big guessing game. This is trying to get a working relationship between our Ignition server and an IBM DB2 database, so I had to create a ‘custom’ driver and connection. I can play with those settings until time ends, but how can I get better troubleshooting information?