Instead of stopping the inbound queue to enable debugging, there is another method which hasn't been documented well.
In the BUPA_CONV_EI2BAPI function module, there is the following code:
This will enable us about 30 seconds to enable debugging from SM50.