Remco;1908 wrote:
NCrunch does have a known issue at the moment around some of its manipulation of PDB files and this is known to cause some problems with the debugger, though I don't think this should be affecting local variables. It would be great if I could learn a little more about your codebase so as to stand a chance of reproducing this issue locally.
Which language are you working with at the moment? Is it C#?
Have you noticed any particular pattern within your solution around which projects are affected by the issue?
When you're unable to access local variables using the debugger, are you still able to access global static members and type references within the application domain?
Does the problem go away if you turn off the 'Analyse line execution times' option in your NCrunch project configuration?
Remco - sorry for the delay - in order:
* C#, VS2010 SP1, 64-bit machine
* Seems to be every time I want to inspect a local variable, unless I'm trying to create a repro ;-) Seriously though, I can't see a pattern, but it's a very common problem.
* Interestingly, I just added a static string[] field to the same class I've been testing in, and no I can't inspect that either
* No turning off "analyse line execution times" didn't make any difference
Other data:
* The 'modules' window in the debugger shows the test and under-test DLLs as non-optimised, and with symbols loaded correctly.
* In the 'real' bin\debug directory, the dll is 51K and its PDB file is 186K. In the ncrunch directory, the DLL is 71K and the PDB is 164K. (larger DLL, smaller PDB)
I can probably send the whole solution to you if it's useful.
Thanks,
Will