Vladimir Sachek
Vladimir Sachek

Reputation: 1124

Easy way to copy breakpoint in Visual Studio

Is there an easy way to copy/move breakpoint to another line in Visual Studio?

There are scenarios when breakpoints may contain some conditions, tracing, etc. and it is not easy to copy/move it around during debugging session.

The only solution I see now is by import/export which is not really acceptable.

Upvotes: 8

Views: 2121

Answers (2)

Vlad Feinstein
Vlad Feinstein

Reputation: 11311

What version of the Studio?

To move:

For 2013 and earlier, right-clik on the breakpoint and select "Location".

For 2015, hover over breakpoint's icon and click "Settings...". In the location area, you can change the name of the file and the line number.

There is no obvious way to copy. How bad do you need it? Someone may write an extension to do that :)

Upvotes: 5

Pranay Rana
Pranay Rana

Reputation: 176934

You can export break point in xml file and when required import that xml file to visual studio again. There is option from export/import in break point window of visual studio.

Check this article for detail : http://www.c-sharpcorner.com/UploadFile/pranayamr/setting-breakpoints-in-visual-studio/

Upvotes: 3

Related Questions