I’m just writing a VSIX extension for Visual Studio 2010 and can’t figure out how to debug it.
One obvious method is to output messages. Extension template uses Trace.WriteLine(). But where to find it’s output?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Visual Studio Extensions can be debugged like any other application. You just need to setup the debug experience to launch devenv with the loaded extension. Try the following
Click on the radio button for
Start External Program. Point it to the devenv.exe binary. On my machine it’s located atOn a non x64 machine though you can remove the ” (x86)” portion.
Then set the command line arguments to
/rootsuffix Exp. This tells Visual Studio to use the experimental hive instead of the normal configuration hive. By default VSIX extensions when built will register themselves in the experimental hive.Now you can F5 and it will start Visual Studio with your VSIX as an available extension.