It would depend on the kind of bugs in the dish washer and whether the dish washer has been being used. It is best to consult a professional about what chemicals to use when dealing with insects inside the home.
Get rid of the snails and slugs.
you must have a leak or moisture build up
Put some salt on them
Getting rid of Slugs.
A musty smell in your dishwasher is usually caused by trapped food particles and bacteria. To get rid of the odor, try cleaning the dishwasher with a mixture of vinegar and baking soda, running a cleaning cycle with a dishwasher cleaner, and regularly cleaning the filter and seals.
To get rid of the new dishwasher smell in your kitchen, try running a cycle with vinegar or baking soda, wiping down the interior with a mixture of water and vinegar, and leaving the door open to air out the dishwasher.
Your dishwasher may smell due to food particles and grease buildup, leading to mold and bacteria growth. To get rid of the odor, try cleaning the dishwasher with a mixture of vinegar and baking soda, running a cleaning cycle with a dishwasher cleaner, and regularly cleaning the filter and seals.
you put salt on them or on the ground every where
Any of the products with metaldehyde extremely effective for snails/slugs.
Picking them off one by one.
Your dishwasher may stink due to food particles and grease buildup, leading to bacterial growth. To get rid of the odor, try cleaning the dishwasher with vinegar, baking soda, or a commercial dishwasher cleaner. Also, make sure to regularly clean the filter, run hot water before starting a cycle, and leave the door open after each use to allow it to dry properly.
Slugs, believe it or not have a very important purpose. They are decomposers, which means they eats wastes and organic materials of other organisms. They help get rid of the trash that animals leave behind.