jrichview
jrichview

Reputation: 390

VS2017 Debugger Breakpoints not working with locally run Azure Function

I've used Visual Studio 2017 to create a queue triggered Azure Function. All that the default generated code does is write a message to the log. The code works, but if you set a breakpoint on it, it is ignored by the debugger.

I have same problem with another queue triggered function that has more complex code, but I created this one as a very simple test case.

What do you have to do to get debug breakpoints to work on this type of project?

Upvotes: 1

Views: 1315

Answers (2)

Métoule
Métoule

Reputation: 14502

As stupid as it sounds, I managed to make it work by unchecking the option

Automatically close the console when debugging stops

in Tools > Options > Debugging > General

Upvotes: 0

jrichview
jrichview

Reputation: 390

Answer was found here which is: (1) right click your project and go to properties page (2) select "Build" on left (3) click "Advanced..." button (4) change "Debugging information" to "Full"

Upvotes: 3

Related Questions