user3018599
user3018599

Reputation: 13

How do you set inline breakpoints in Visual Studio 2017

There's no longer a context menu option to set a breakpoint "in-line". Example:

if (someBoolean) return CallToMyMethod();

With previous versions of VS I could simply right click "CallToMyMethod" and set a breakpoint there. There doesn't seem to be a way of doing this anymore?

Upvotes: 1

Views: 2712

Answers (1)

loneshark99
loneshark99

Reputation: 734

enter image description here

Just highlight the method name or the part where you need the breakpoint and then press F9.

Upvotes: 6

Related Questions