First time here? Check out the site's "greatest hits" or read a post from the archives. Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. Thanks for visiting!
« Hanselminutes Podcast 82 - 10 Foot Devel... | Main | The 2007 Walk Against Diabetes approache... »

This might be old news but it was a treat for me. In debugging some multithreaded code recently got to use the improved debugger support for threads in Visual Studio 2008 (I'm running Beta 2) that John Robbins blogged about last month and Soma blogged last week.

Take a look at the IDE screenshot below (click to Zoom).

Multi-threaded Debugging

There's a few cool and subtle things going on here. Take a look at the current instruction location in yellow. It's right at the end of the CheckDependancyCallback method - but see the gray highlight with the squiggly "thread" in the margin? That's the current location of another thread of execution.

You can name your threads now just by entering their name in the Threads toolbox window, and some threads without names will get an automatic name. You can also flag threads you're interested in watching so you don't have to remember the Thread ID.Take a look at the Debug toolbar as well. You can see the Debug Location including Process and Thread (what thread I'm currently debugging).

What a treat.



Friday, September 21, 2007 9:11:41 PM (Pacific Standard Time, UTC-08:00)
I'm looking forward to using these features in VS 2008!
Saturday, September 22, 2007 10:44:13 AM (Pacific Standard Time, UTC-08:00)
Nice. Thanks for the info, Scott. One of my biggest annoyances with VS 2005 was the inability to easily tell one thread from another in the Threads dropdown.
Saturday, September 22, 2007 2:58:58 PM (Pacific Standard Time, UTC-08:00)
That is cool!

Shouldn't you be checking for a null condition on CacheDepends? ;)
Chris Martin
Saturday, September 22, 2007 5:40:44 PM (Pacific Standard Time, UTC-08:00)
ChrisM - Who else could possibly be calling my callback? ;)
Comments are closed.

Contact

Sponsors

Hosting By

On this page...

Tags

Calendar

<October 2008>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

Archives

Google Ads