Theomax
Theomax

Reputation: 6800

Page error is occurring but debug doesn't stop on the line of code that caused the exception?

Usually when I debug code an error occurs, visual studio stops on the line of code that caused the error. But for this project it displays the page error and doesn't stop on the line of code. I have checked the settings in Exceptions to throw exception.

Any ideas why the exceptions aren't being shown in visual studio?

Upvotes: 1

Views: 394

Answers (2)

PraveenVenu
PraveenVenu

Reputation: 8337

Try to put a brake point on the line on you expect the error. While running check if that breakpoint icon changes from solid to just circle with a border. If so make sure you can compile your website without compile time error

Upvotes: 2

Adrian Iftode
Adrian Iftode

Reputation: 15663

Check if the build is in Debug Mode and not Release Mode.

Upvotes: 1

Related Questions