I ran into this error message while trying to debug a project today:
“Duplicate type name within an assembly.”
The workaround to this was actually pretty weird. Remove all of your breakpoints that appear before this exception and place one after it instead. That’s it!
A bit of a weird issue, but according to the StackOverflow post where I found the solution Microsoft are aware of it: http://stackoverflow.com/a/23529882/522859
Ran into a bit of trouble with a model today, after a bit of a google I came across this technique which helped me solve it:
#Raise exception on object.inspect
This simply allows you display variable values as an exception. By placing a few of these throughout your troublesome code you can simulate a fully targeted trace.