#Falco Debugging Help

1 messages · Page 1 of 1 (latest)

tawny sentinel
#

Can someone please help?

I'm trying to debug an F# Falco app in VS Code. However, no matter how I set up the tasks and configurations, the breakpoints do not trigger when the application is running. They do trigger when the web server first launches, but not when hitting a web endpoint.

My questions are:
Is it possible to debug the Falco web server in VS Code?
If so, what are the correct configurations of tasks and settings required in VS Code?

I have tried this on Windows 10, WSL on Windows 10, and Ubuntu 22.04, to rule out any OS-specific issues.

stuck crystal
#

I'd be willing to passively help and take a look

#

I don't really find myself needing a debugger often so I don't have one setup in F# but I would like to know how

tawny sentinel
#

What I have been testing is using dotnet run to run my project. Then I use this launch configuration to attach the debugger to the running process. However this does not work.

            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach",
            "processId": "${command:pickProcess}"
}```
#

I don't really find myself needing a debugger often
Yeah I find a lot of people say that. I don't understand how people live without them.
Maybe its because most of my coding have been in dynamic type languages like python and powershell were they are needed more the static typed maybe.

tawny sentinel
#

I'm assuming that the debugger does not triggered the breakpoint because the web request is in a different thread.

stuck crystal
#

sorry that I haven't looked at this in a hot minute

#

I too have an F# project I've been working on so I have reason to try this. I've just been busy here lately