we're having some trouble debugging a SA-merged assembly in VS2008. We've used both our licensed SA5.5 and the SA6 beta and the result is the same:
We generate debugging info in SA, and debugging works fine for breakpoints, step-into and all but for methods local variables. We can see the values of every method parameter or class attributes, but not the values of local variables - it's as if they don't exist. We tried with mouse hover, immediate window and watches to no avail. Also, conditional breakpoints which mention local variables don't work due to "The name 'xxxx' does not exist in the current context". However, code lines that use them execute normally.
If we reference the original assembly this behaviour disappears so this information is clearly lost in the merging process.
We thought at first it could be related to the code being optimized but we don't check any option regarding optimization, obfuscation or whatever - we just do the merge and generate the pdb - also we sign with a strongname but that shouldn't be related...
Any ideas of what could be causing this? Has anyone experienced this before?
EDIT: I tried an unsigned version just in case, same result