0

I added some breakpoints in my c# code using Visual Studio and by pressing ctrl+shift+F9, I removed all of them from Solution.

I was wondering if is there any way to undo current breakpoints as I need them now to debug the code.

also, Is there any way to save these breakpoints for future debugging?

fatima Ajij
  • 172
  • 3
  • 14
  • 1
    No Undo but: Yes you can [save](https://stackoverflow.com/questions/200114/where-are-visual-studio-breakpoints-saved) them. Also [see here](https://dailydotnettips.com/import-and-export-breakpoints-in-visual-studio/) – TaW Jul 20 '20 at 12:52
  • 1
    Don't forget, often a really easy way to get to relevant code that needs debugging is to break on all exceptions not just uncaught ones. Show the Debug>>Exceptions tool panel and put a tick next to CLR Exceptions - now as soon as any exception is thrown you'll break. You can turn it off on a per exception basis as they throw, if you're finding that there are a lot of useless ones like ThreadAbort when your code redirects etc – Caius Jard Jul 20 '20 at 12:55

1 Answers1

0

There isn't. You'll have to manually put them back on the lines that you had them.

In the future, I recommend that you use the "Disable All Breakpoints" option instead of deleting them. This way you can switch them on and off as necessary.

almostengr
  • 16
  • 2