I'm trying to debug an Azure function (CSX) on localhost in Visual Studio Code. I can attach a debugger, but I cannot put a breakpoint. Should I install something?
Currently, Functions CSX debugging in VS Code is not supported. VS Code debugging does not support full/desktop CLR, which is what CSX functions target.
Debugging csx files has been solved since the original answer.
This blog gives a broad tutorial including debugging.
The key is
dotnet script init
Which will set up the launch.json
and omnisharp.json
files needed. This config will debug whatever script file is open.
TIP: You may want to change stopAtEntry
in launch.json
to false
. This setting confused me at first because it causes the program to halt before any breakpoint is reached, and seemingly before the script file is reached.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With