I try to feed my geckos out of the enclosure but some will simply not have it.
If the animal loves bugs and loves to hunt then it will probably eat in another container.
Dubias can't climb smooth surfaces so you could just stick them in a smooth glass dish in the enclosure and they wouldn't be able to hide.