Skip to content

Enable Debugging for language workers

Ahmed ElSayed edited this page Feb 4, 2019 · 5 revisions

dotnet

To debug a C# function, you just need to attach the C# debugger to the func process.

node

# Where 5858 is the node inspect port you want to pass to the node worker
func start --language-worker -- "--inspect=5858"

Java

# Where 5005 is the java debug port. 
func host start \
  --language-worker -- "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"

Python

# Where 9091 is the python debug port you can attach to. 
func host start \
  --language-worker -- "-m ptvsd --host 127.0.0.1 --port 9091"