Visual Studio – Using wildcard characters in the symbol pattern for a breakpoint

If you even came across WinDBG, you might have experienced using “bm” command for setting one more breakpoints based on the pattern we’re specifying.

For e.g if we put break point like bm Create*, the debugger will put the break points in the function with starts with Create.

The similar feature is available in Visual Studio as well. As an example, consider the following class ‘CPerson’

image

and suppose if we want to set the break points on all set function, we can do as do as follows.

Take New Break Point from Debug Menu

image

Give your wild characters to break at desired function

11

Once you start debugging you can see that break-points appears as specified…

image

Cool isn’t it?

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

blog comments powered by Disqus