Did you know… What the Enable Address-Level Debugging option does? – #271

Under Tools – Options – Debugging – General, there’s the option Enable Address-Level Debugging. 

image

When checked, you get the following additional Debugger Tool Windows: Memory windows, Disassembly, and Registers.

image

And when unchecked, you don’t get them.

image

Technorati Tags: VS2005Tip,VS2008Tip

Did you know… You can have all processes break when one process breaks or vice versa – #270

In Tools – Options – Debugging – General, there’s the option “Break all processes when one process breaks.”  Let’s say you are debugging multiple projects, and you want to configure what happens when one process breaks.

Break all processes

For example, let’s say I have two console applications running in an infinite loop.  And on the second console application, I break the process.  Notice how the first console application also breaks.

both console applications break

And of course, you can unchecked this option to have the first console application keep going.

Technorati Tags: VS2005Tip,VS2008Tip

Did you know… How to select the startup project? – #269

Yesterday’s tip talked about how to start multiple projects for debugging, but taking a step back, let’s talk about the two ways you can select a single startup project.

The first way is via the solution property pages.  Right-click on the Solution, and under Common Properties-Startup Project, you can choose “Single startup project”.  here you can select the project.

image

Or for the real tip for the day, you can right-click the project and select “Set as StartUp Project” from the context menu. 

image

The startup project will be bolded in the solution explorer.

image

Did you know… You can start debugging multiple projects? – #268

Happy Birthday Visual Studio Tip of the Day!  Wow, what a difference a post a day makes.  Thanks to everyone who has been reading the series.  It’s been an extremely rewarding experience to see these tips help. 

And thanks for the motivation to continue writing.  It takes me on the average 20-30 minutes to decide what tip to write, to capture the screenshots, and to add it to the queue. I refuse to do the math.  I just don’t want to know.  =D

I consider July 27, 2007 to be the kick-off day for Tip of the Day, since that’s when I posted #002 and started the consecutive series.  #001 went out a few days earlier for us to get the RSS feeds ready to go.  I wished Tip of the Day happy birthday while presenting at OSCON, even if it wasn’t the targeted audience. =D

If you are only using one project per solution, today’s tip may not mean too much to you.  But, if you have multiple projects, you can select which ones of them you want started under the debugger.

Right-click the Solution in the Solution Explorer, and select Properties.  Go to the Common Properties – Startup Project page (it’s the first page in the dialog).

You’ll see three radio buttons:

  • Current selection – whichever project had the inactive selection (i.e. whatever was selected previously) when you went to the solution property pages.
  • Single startup project – usually this is the first project you had in the solution, or the project that you manually set as the startup project
  • Multiple startup projects – and there was great joy.  When enabled, you can then pick and choose which projects to start (and make sure you choose Start and not Start without debugging)

image

And using the example above, when I hit F5, I get

image

Technorati Tags: VS2005Tip,VS2008Tip

Did you know… You can disable the warning message before you delete all breakpoints? – #267

Yesterday’s tip talked about how to delete all breakpoints.  If you are following along at home, you hit the warning message that appears when you attempt to do this. 

do you want to delete all breakpoints prompt

If it is annoying, you can disable it by going to Tools – Options – Debugging – General, and uncheck the Ask before deleting all breakpoints checkbox.

Tools Options Debugging General - ask before deleting all breakpoints

Technorati Tags: VS2005Tip,VS2008Tip

Speaking at the O’Reilly Open Source Convention this Friday

If there ever were a “Sara needs a hug” moment… I’m doing a talk on Friday called Towards a Stronger Open Source Ecosystem.  It’s a story about what I’ve seen and ideas I have for the future.  I actually put together this abstract 2 years ago, so it isn’t necessarily a talk about the future of CodePlex, as my day job would led you to believe.

Here’s the abstract.  Wish me luck!

“Code speaks louder than words” is a fundamental philosophy of the open source community, because developers use code to discuss code, not words. Imagine a code review over email that did not contain a single line of code. The conversation would be lost in translation. Code is the universal language in the developer ecosystem, allowing us developers to communicate with one another.

But yet, we don’t communicate universally today. We define ourselves by our business models, our developer tools, our technologies, hence defining who we converse with. But imagine if there were no definitions or boundaries, where all developers could effectively engage together. Imagine an open source ecosystem that included all developers, regardless of platform, language, or development environment.

This talk will cover go over a roadmap for striving towards this stronger open source ecosystem through current infrastructure enhancements, fostering community growth through discoverability, project incubations and sponsorships, and paving the ways for proprietary products to evaluate various methods of going open source.

Did you know… You can use Ctrl+F9 to enable or disable a breakpoint – #265

In the general development settings, I didn’t see this command under the Debug menu.  So, in case you want to use the keyboard to enable or disable a breakpoint, you can Ctrl+F9, which is bound to the command Debug.EnabledBreakpointNote that you won’t find a Debug.DisableBreakpoint, since this is handled by the enabled command.

Disabled breakpoint

A disabled breakpoint will still get saved in your Breakpoints window, but will be ignored while debugging.

Breakpoints window showing a disabled breakpoint

Technorati Tags: VS2005Tip,VS2008Tip

Did you know… You can use IntelliSense to verify your breakpoint name in the New Breakpoint window – #264

In the New Breakpoint window, there’s a checkbox “Use IntelliSense to verify the function name.”  Just as you would expect, this does a sanity check to ensure the function name is valid in your project.

Use IntelliSense to verify method name option

For example, if the function name doesn’t match an overload, you’ll get prompted to choose which method you really meant.

Choose Breakpoints window

Or if the function doesn’t exist,

image

Now, let’s say you don’t need its help and uncheck the option.  In the case above, a breakpoint will be inserted in all overloads for the function.  Or if you type in a function that doesn’t exist, it won’t get inserted into the code, but will get created in the Breakpoints window.

Breakpoints window showing a breakpoint that wasn't inserted in the file.

Technorati Tags: VS2005Tip,VS2008Tip

Did you know… You can press Ctrl+B to set a breakpoint at the desired function – #263

In case you want to set a breakpoint at a given function, and not at the current line, you don’t have to search for the function name to hit F9.  You can press Ctrl+B (general development settings) to do a Debug – Break at Function.

Breakpoints Window - Break at Function command

This command will bring up the Breakpoint window.

New Breakpoint window

Here you can type in the name of the function you wish to set a new breakpoint at.

Technorati Tags: VS2005Tip,VS2008Tip