You kind of can. Just wire a drawDebugLine from gun socket location to linetrace starting location and another drawDebugLine from gun socket location to linetrace target location. And make the render duration linger a while. DrawDebug nodes are handy.
As to your issue, If this is really a collision issue, you might have to disable collision on your weapon so the trace can run through.