问题
My application has built-in Python interpreter and I need to debug Python code there. However Visual Studio Code allows to choose only from interpreters found in paths and named python/python2/python3.
I tried to set python.pythonPath in settings.json to point to my application, but Visual Studio Code doesn't recognize it as valid Python interpreter.
Sure, I need to make sure that my application behave like Python interpreter and pass all command-line parameters to Python ptvsd_launcher.py.
回答1:
The "python.pythonPath"
setting is how you can specify a Python interpreter that is not automatically detected. If the binary does not function as a normal python
binary then unfortunately there's no way for the extension to use it.
来源:https://stackoverflow.com/questions/57277652/how-to-specify-non-standard-python-interpreter