Debugger crashing when I hit a breakpoint

Debugger crashing when I hit a breakpoint

Anonymous
Not applicable
1,194 Views
2 Replies
Message 1 of 3

Debugger crashing when I hit a breakpoint

Anonymous
Not applicable

Hey all, 

 

I've worked on Revit previously, but the job already had the project built and so forth.  Now, I'm setting out on my own and creating a new Revit addin.  Everything is going fine but one thing, and you guessed it: The debugger crashes when I hit a breakpoint.  The builds for 2016-2018 are all good; they compile and all is right in the world, except when I want to step through the code to see what's happening.  I get this error every time:

Debugger_Error.png

Then, when I go to rebuild my solution, I get this:

 

Build_Error.png

 

It's not updating the DLLs because it says they're still in use.  

 

I've never started from scratch like this, and I've tried researching everything, but it feels like the answers are really vague or I have to run down a really deep rabbit hole that takes me to something completely unrelated before I find a solution.

 

What do I need to do to set up my debugger so it doesn't have a heart attack on me?

 

Side note:

  • Windows 10
  • Visual Studio 2017 Professional
  • Revit 2016,2017 & 2018
  • Computer is brand new:
    • 16GB RAM
    • 256GB SSD, 1TB Hard Drive
    • i7-7700 3.6GHz processor
    • NVIDIA GeForce GTX 1060 Graphics Card
0 Likes
Accepted solutions (1)
1,195 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

There are some settings in VS 2017 needed, like:

 

Enable the "Used Managed Compatibility Mode" option from Tools menu -> Options -> Debugging

Uncheck "enable just my code"

Message 3 of 3

Anonymous
Not applicable
Accepted solution

I have all that done.  After much research, I found an article on MSDN where someone who works on the debugger team essentially said, "Yea, we know that happens.  Sorry.  We're looking in to it."  I opened my solution in VS2015 and I don't have any problems.

0 Likes