-
Notifications
You must be signed in to change notification settings - Fork 146
Description
I need to customize the command that the debugger runs when starting the local function runner.
Specifically, I need to pass a --script-root argument because my functions are in a subdirectory.
My launch.json is the default generated one :
{
"name": "Attach to Python Functions",
"type": "python",
"request": "attach",
"port": 9091,
"preLaunchTask": "func: host start"
}
and the associated task from tasks.json is also the default one:
{
"type": "func",
"command": "host start",
"problemMatcher": "$func-watch",
"isBackground": true,
"dependsOn": "pipInstall"
},
and I expected to be able to add a "args" key in there with arguments to pass to func host start.
When I do, the linter tells me that "args" is an unexpected option and it is ignored. The command that is run is just .env/bin/activate && func host start.
My current alternative is to run func host start --script-root functions as a shell command but I'm having trouble making it attach to the debugger.
Any way to pass options to func host start from the launch or task configuration?