Adam
Adam

Reputation: 1193

VS2013 - Moving a simple Breakpoint

I thought this would be obvious to find so I might be asking the wrong question. Anyways.

There is a god class which is throwing a null reference exception (OMG RIGHT!). There is a huge try catch. So I catch the error then I scroll all the way to the top of the method with my debugger. (5 mins later...) step step step. Error found.

Is there a way in VS where I can right click on a line and it will move my debugger to that line without me having to drag this pesky thing around?

Thanking you kindly,

P.S I use Resharper just in case that has the answer. Simpsons.

Upvotes: 0

Views: 63

Answers (1)

Thomas Weller
Thomas Weller

Reputation: 59633

Ctrl+Shift+F10 should move the yellow instruction pointer.

The red breakpoints cannot be moved. You can set or unset those with F9.

In addition, the following may be useful for you, because it will stop when the NullReferenceException is thrown:

Debug / Exceptions ...

Break when thrown

Upvotes: 2

Related Questions