Set up your development environment to run WinGate.exe with the command line argument -force9x. In Visual Studio 2010 these settings can be found Project Properties -> Configuration Properties -> Debugging. Set Command to the path to WinGate.exe which is typically c:\Program Files (x86)\WinGate\WinGate.exe and set Command Arguments to -force9x. If you wish to run the debug version of your plugin from within the IDE then specify -debug on the command lineas an additional command argument.
If you are running a UI module within the WinGate Management Console then set the Command option to GateKeeper.exe and specify -debug if you which to run the debug version of your module.
...