'Debugging Blend from Visual Studio. No symbols loaded
I am trying to debug an issue with some code running at DesignTime in Expression Blend 2013.
I have a Windows Store (8.1) project that is loaded in Blend. I want to debug some ViewModel code that is running in the Blend designer.
In previous projects I have opened the same project in Visual Studio and done "Debug - Attach Process" to Blend.
The problem I am seeing on the current dev machine is that all the break points are invalid. They display the warning
The breakpoint will not currently be hit. No symbols have been loaded for this document
These breakpoints run fine if I simply Debug - Start in Visual Studio and deploy to the Emulator. Why is Blend not allowing me to attach and debug?
TIA
Pat Long
Solution 1:[1]
Another possibility...
Make sure you have the "Enable/Disable Project Code" toggle set to "enabled"...in VS/Blend 2015 it's a small icon below the XAML editor:
.
If it's disabled, this could be the reason your design time instance doesn't seem to be working.
Further, if it's disabled and you attempt to debug using a second VS instance, then when you attach to the XDesProc any breakpoints you set in the code-behind will report that they "will not currently be hit. [because] No symbols have been loaded for this document". You might think that you need to somehow load the symbols, but if you open up the Modules window attempting to do so, you won't even see your module in the listing.
I lost a couple hours on this issue because of this setting being disabled. Hope this helps others not do the same. Because of that, I'll post this on a few of the related questions.
BTW, there's an excellent description of this debugging procedure by James McNellis on one of those related questions.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | StayOnTarget |
