RC debounce mosfet gate
For ordinary debounce, you want







simulate this circuit &ndash; Schematic created using CircuitLab

Your circuit will leave the gate floating when the switch is open, and that is technically called A Bad Thing.

Switch bounce usually lasts a few milliseconds. In the circuit I've shown, the 100 ohm resistor is intended to protect the switch from the current surge you get if you just short out a capacitor. For a beefy switch it may not be necessary.

I've shown a 10 volt supply, and something like 10 to 12 volts is generally a good idea for driving MOSFETs. If you're using logic-level FETs you can get by with less, and you can even use less on regular FETs, but you may get inconsistent results. For instance, if your logic circuits are running on 3.3 volts, you may be tempted to use that, but a lot of power MOSFETs are not guaranteed to work with less than 4 volts on the gate. Know your parts before you build your circuit. "Good judgment comes from experience. Experience comes from bad judgment."

Also, learn to use the schematic entry tool which is part of this site. It's the seventh icon from the left above the answer text window.