Sunday, June 17, 2007

Restore IntelliSense for web.config

Sometimes intellisense gets lost for web.config in VS2005.

Seems like it happens after usage of "ASP.NET Configuration" tool. The tool replaces <configuration> tag with <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">, and IntelliSense is not available after that.

To fix the problem - just remove that xmlns="..." from the <configuration> tag. And save the web.config.

 

Labels: , , , , ,

Sunday, June 10, 2007

Fixing Visual Studio 2005 Documentation

Documentation for .NET Framework disappeared after I installed some additional stuff to VS2005 (I guess it was after "Web Client Software Factory - January 2007" installation). On hitting F1 in VS2005 usually I was getting "Information Not Found".

After unsuccessful searches in Google I gave up and decided to try to find the problem myself. That was funny, because I found the solution in a minute.

In case you have the similar problem I would suggest to try the following:

  1. Run Microsoft Visual Studio 2005 Documentation from Start Menu. The Document Exproler should start with the page named The Visual Studio Combined Help Collection.
  2. At the page click on Visual Studio 2005 Combined Help Collection Manager hyperlink. That should go to a page with information on all help collections installed at your machine.
  3. Check all collections you need and hit Update VSCC. Close all instances of Document Explorer and VS2005. On the next start it will update indexes and you should get the help back.

Good luck.

 

del.icio.us tags: , , , , , , , ,

Labels: , , ,

Thursday, March 23, 2006

Cool feature in Visual Studio 2005: Tracepoints

That's so obvious, I cannot beleive this feature was not there before!

Idea is really simple (and great!) - perform some action when code line is hit.
How many times you temporary modified a source code just to check how some var is changing by inserting ::OutputDebugString() or something similar.
Now that technique is obsolete. Just insert a tracepoint to that code line, and specify a template for message you want to see in Output window. In addition in the message template you can show Thread ID (for MT debugging), CPU Tick Count (for simple profiling), Call Stack, etc.

To insert tracepoint
Right-click on a line of code, choose Breakpoint \ Insert Tracepoint.
It will show dialog with all instructions.

For more details check MSDN article How to: Specify a Tracepoint/Breakpoint Action

Labels: ,