Debugging visual studio 2012 plugin impossible due to Resharper...?!

Hi there,

I've been using resharper for a long time and have been really happy with the product! :)

That beeing said though - it seems that developing visual studio plugins is impossible at the moment, due to the following issue caused by resharper:

The following exception keeps repeating when creating a CSharp console application and opening a CSharp file in the Visual Studio debug instance:
A first chance exception of type 'JetBrains.ReSharper.Psi.Parsing.UnexpectedToken' occurred in JetBrains.ReSharper.Psi.CSharp.dll

It just keeps repeating... and pretty much freezing the Visual Studio debug instance.

This is how I reproduced it:

1. Create a visual studio AddIn project - alternatively create a Resharper plugin project.

2. Start debugging the plugin - which will open a new visual studio instance.

3. Create a new CSharp project of any kind (console / lib etc...) in the instance that is beegin debugged.

4. Open any .cs file.

5. Now the exception is beeing thrown.

I have tried this with both resharper 7.1.3 (the build on the website) and also with the 8.0 beta.

Do you have any workaround for this? (other than suspending resharper in the debugged instance... which solves the issue... but then I can't debug the Resharper plugin we are planning do develop...)

Hope you can point me out to some solution!

Thank you,

Comment actions Permalink

I have seen this happen from time to time, where VS seems to get itself into a kind of infinite loop while debugging ReSharper. I've been able to get things working again by detaching the debugger and re-attaching. It doesn't happen every time, and I haven't figured out what causes it.

Comment actions Permalink

Ok, thanks for the response - I will give that a go - in the meanwhile I actually installed Visual Studio 2010, and I'm able to debug just fine in that instance - though I'm not too happy about using 2010 now that I'm used to 2012, it's so damn ugly :p

Thank you,


Please sign in to leave a comment.