@functions ‘This is not a valid location for a breakpoint’ in Visual Studio 2013

less than 1 minute read,

Working with Visual Studio 2013 and I tried to set a breakpoint in “@fucntions” bout got back an error message that read:

This is not a valid location for a breakpoint.

image

That’s funny, because it works in Visual Studio 2012. See:

image

Oh well, as a work around, move the @functions block up to the beginning of the cshtml razor view, and you should be able to once again set breakpoints:

image

Why? Who knows. :/

-Brian

Updated:

Leave a comment

Your email address will not be published. Required fields are marked *

Loading...