Under what conditions?
If you want to stop the user getting the "Debug" option when an error
occurs:
- user error handling in your code;
- create an MDE.
If you want to stop the user pressing Ctr+G to open the Immediate window,
uncheck Allow Special Keys under:
Tools | Startup
Not sure what other conditions it would be desirable to disable it.