Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 557489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:01:54+00:00 2026-05-13T12:01:54+00:00

This is neat: How do I put a breakpoint at every MessageBox in my

  • 0

This is neat:
How do I put a breakpoint at every MessageBox in my application?

But is there a way to do this type of thing for tokens in the Task List (View menu -> Task List) as well?
For example, I have code like this:

int a=0; //RETEST this code
int b=0; //RETEST this code

In the above, RETEST is a Task List token; is there a way to set a breakpoint on all lines matching a certain Task List token quickly without having to go to each line where the token was found?

UPDATE

Here is the macro (inspired by How do I add Debug Breakpoints to lines displayed in a "Find Results" window in Visual Studio):

Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Imports System.IO
Imports System.Text.RegularExpressions

Public Module CustomMacros
    Sub SetBreakpointsUsingTaskList()

        Dim TL As TaskList = DTE.ToolWindows.TaskList
        Dim TLItem As TaskItem

        For i = 1 To TL.TaskItems.Count
            TLItem = TL.TaskItems.Item(i)
            Try
                DTE.Debugger.Breakpoints.Add("", TLItem.FileName, TLItem.Line)
            Catch ex As Exception
                ' breakpoints can't be added everywhere
            End Try
        Next
    End Sub
End Module
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:01:54+00:00Added an answer on May 13, 2026 at 12:01 pm

    Unfortunately no such precanned functionality exists in Visual Studio. It would likely be possible to do with a Macro.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any neat solution of knowing when a thread has been put into
Can't think of a neat way of doing this in java: I'm streaming sets
Howdy, I love this neat thing found on css-tricks: a:active { position: relative; top:
From this question , a neat answer about using COALESCE to simplify complex logic
This is a bit of a long shot, but if anyone can figure it
This is kinda oddball, but I was poking around with the GNU assembler today
This might seem like a stupid question I admit. But I'm in a small
This is a difficult and open-ended question I know, but I thought I'd throw
Ok this might be a bit of hack but bear with me :) The
I'm learning web development, and I don't know how do this simple thing. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.