If you are speaking about using Visual Studio for debugging, that is quite simple (or it was last time I have done that, which admittedly is 5+ years ago): You can just open resulting .exe file in Visual Studio. You can pass it on commandline too, that is what Alt+F5 does. You just have to fill something like 'msvc' in the build method's "External debugger" field...