c# - Generating debug symbols for Symbol Server from CI process to aid remote debugging -
Do anyone have any advice about the expansion of our SVN and adventure? To populate cruise control?
We are trying to debug remote environment tests for our ASP.NET 2.0C # website and there are problems in getting the right symbols to always load correctly.
Our building process is not in debug mode in release mode, so how is it affected by the creation of PDB files?
Using VS 2008, we have solved many problems in connecting to remote debugging. We are now receiving this message when trying to see the variables in the test environment are not in the same domain: / P>
Local or argument can not get value of 'XXXxx' because it is not available on this instruction indicator, possibly because it has been optimized far away
Is it because of our Is the creation and subsequent deployment process in release mode?
This error message occurs because CLR has optimized the variable itself. PDB still has all the information about the locals in the release mode, Debugger is unable to reach them easily.
Although it is possible to build in release mode and usually avoid this problem. The CLR optimizes in such a way that local people are not visible or not, one of the reasons is that debuggable attribute
class
this feature is usually compiled by the compiler Is exempted and it changes the flags based on project mode: Release or debug if the attribute is already present in your project, then the compiler will not overwrite it.
If you have a web application (a web site vs.) then you can only add the following line to AssemblyInfo.cs and fix this problem
[Assembly: debugging modes. Disableopimation]]
Note that this disables performance performance, so you do not really want to release this way, but debugging It's useful for.
Comments
Post a Comment