Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to start to debug a Python Azure Function #1672

Closed
fernandoadriano opened this issue Nov 20, 2019 · 5 comments
Closed

Fail to start to debug a Python Azure Function #1672

fernandoadriano opened this issue Nov 20, 2019 · 5 comments
Assignees
Labels
Milestone

Comments

@fernandoadriano
Copy link

When I start a Azure Function write in Python, I receive the following message and can't run it
Starting worker process:python /Users/adriano/.vscode/extensions/ms-python.python-2019.11.49689/pythonFiles/lib/python/new_ptvsd/no_wheels/ptvsd --default --host 127.0.0.1 --port 9091 --wait "/usr/local/Cellar/azure-functions-core-tools/2.7.1846/workers/python/3.7/OSX/X64/worker.py" --host 127.0.0.1 --port 50506 --workerId 7ccf8740-490c-40d3-8e11-6a8c1a5f074b --requestId af4c3963-eebf-491a-8006-1d4ede1026b5 --grpcMaxMessageLength 134217728
[20/11/2019 18:59:45] python process with Id=4667 started
[20/11/2019 18:59:45] ptvsd 5.0.0a7
[20/11/2019 18:59:45] See https://aka.ms/ptvsd for documentation.
[20/11/2019 18:59:45] Usage: ptvsd [--client] --host

[--port ]
[20/11/2019 18:59:45] [--wait]
[20/11/2019 18:59:45] [--no-subprocesses]
[20/11/2019 18:59:45] [--log-dir ] [--log-stderr]
[20/11/2019 18:59:45] | -m | -c | --pid
[20/11/2019 18:59:45] Error: unrecognized switch --default

@ahmedelnably
Copy link
Contributor

cc/ @maiqbal11 to look at this

@lucasmerker
Copy link

Is there some progress on this? Got the same issue...

@mzkaramat
Copy link

Hey, is there some progress on it?

@ghost
Copy link

ghost commented Dec 10, 2019

I'm having the same issue. Any progress yet?

@Hazhzeng Hazhzeng self-assigned this Dec 10, 2019
@Hazhzeng Hazhzeng added the bug label Dec 10, 2019
@Hazhzeng
Copy link
Contributor

Seems like the latest ptvsd 5.0.0a7 drops the support for the --default flag.
There's an issue tracked by the vscode extension team microsoft/vscode-azurefunctions#1743.

Please mitigate this issue by downgrading your vscode extension by following these steps:
microsoft/vscode-azurefunctions#1743 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants