Partager via


Did you know… You can use Breakpoint Filters to break the right process - #273

Conditional breakpoints are for breaking at the expression level, when a particular condition is true, like x=5.  But what if you have multiple instances of the same app running?  How do you set to break the instance you want?

The answer is Breakpoint Filters.

Go to Tools – Options – Debugging – General, and there you’ll see the option to enable breakpoint filters.

image

Set a Breaking and Right-click to bring up the context menu.

Breakpoint Filter context menu option

Then in the Filter dialog box, you can specify when to break, for example, per PID (process ID).

image

and now you can verify the breakpoint filter in the Breakpoints window.

Breakpoints window showing breakpoint filter

Comments

  • Anonymous
    August 04, 2008
    The comment has been removed

  • Anonymous
    August 05, 2008
    The comment has been removed

  • Anonymous
    August 05, 2008
    友情提示:请大家直接看原英文,参照系列标题就是简介。消息与工具第一名:31天的VisualStudio提示和技巧。

  • Anonymous
    August 05, 2008
    友情提示:请大家直接看原英文,参照系列标题就是简介。消息与工具第一名:31天的VisualStudio提示和技巧。

  • Anonymous
    August 05, 2008
    友情提示:请大家直接看原英文,参照系列标题就是简介。 消息与工具 第一名:31天的Visual Studio提示和技巧。   2. 微软下载(TFS ) -VSTS 2008 技术可行性说明书

  • Anonymous
    August 06, 2008
    1.MicrosoftSyncFrameworkv1.0Released(

  • Anonymous
    August 06, 2008
    1.MicrosoftSyncFrameworkv1.0Released(

  • Anonymous
    August 06, 2008

  1. Microsoft Sync Framework v1.0 Released (    特色: Sync Services for ADO.NET v2 AND Sync Framework
  • Anonymous
    August 08, 2008
    Skip Valentine: I think you could accomplish that by setting a DATA breakpoint (at the address of soldQuantity, say 0x12345678), and assigning a condition to it (say, ((INT*)0x12345678) == -5 ). At least i know these are available for VC++.  don't know much about VB though.

  • Anonymous
    January 13, 2009
    本篇包括tip271-tip290http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-28.html注:作者的ti...