2

Visual Studio debugger stepping into non-user code on Azure functions projects.

  • Just my code is checked.
  • Reinstalled visual studio.
  • Resetted my whole windows machine.
  • My azure functions projects are currently not debuggable due to this annoying dialog in stepping into azure function assembly code.
  • Github issue Github issue
  • Developer community Developer community

Annoying dialog

Annoying tab

Library code

Not my user code, this is wrong!!!

Halid
  • 448
  • 7
  • 16
  • Hi friend, is this issue reproducible in new project. If so, you can share a simple sample or directly report this issue to Product Team by the way suggested in my answer. Hope it helps :) – LoLance Jul 03 '19 at 03:27
  • Its reproducible on new projects. Thank you friend. – Halid Jul 03 '19 at 15:03
  • After reporting this issue in VS, you can share the link here and members interested in it can vote for it can follow the situation. – LoLance Jul 04 '19 at 05:33
  • Added github and Developer community link – Halid Jul 04 '19 at 14:42
  • See the links in my update, the team is now aware of this issue and they will release the updated packages soon. Sorry for the inconvenience before the next fix :( – LoLance Jul 25 '19 at 01:43

1 Answers1

1

I would think maybe this's one issue about those assemblies. See the Modules Window and you can find the debugger recognize them as User Code!

I think that's why it will try to step into them when you've enabled Just My Code because the debugger thinks those functions are part of User Code. See answer from Hans and you may get some help about why the debugger recognize them as User Code.

So it's clear if debugger recognize User Code by the rule: No optimization + debug symbols=User Code, then those assemblies from those folder are recognized as User code, and when you step into them, the error occurs.

Suggestion:

So you may have to use step over(F10) for those Azure functions, and step into(F11) for the real user-code of yours. And if this issue is reproducible in new Azure projects, I suggest you Go Help menu=>Send Feedback=>Report the problem to report this issue to Product Team.

Update1:

Now the team in Github is tracking this issue and the updated packages will release soon.

See Debugging Options: "Enable Just My Code" ignored for Durable Functions and Ensure packages are built in release mode.

LoLance
  • 25,666
  • 1
  • 39
  • 73