A simple workaround to the bug mentioned by @BrettCannon is to add the following env
entry to the launch.json
configuration:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"env": { "PYTHONPATH": "${workspaceRoot}"}
}
]
}
Related Contents:
- Visual Studio Code – Python debugging – Step into the code of external functions when executing
- Visual Studio Code: run Python file with arguments
- VS Code starts debugging in integrated terminal instead of debug console
- Pretty print a pandas dataframe in VS Code
- VSCode’s debugging mode always stop at first line
- Visual Studio Code Python Timeout waiting for debugger connection
- Is there a built-in function to print all the current properties and values of an object?
- Showing the stack trace from a running Python application
- Python memory leaks [closed]
- How to debug a Flask app
- filename and line number of Python script
- Getting the caller function name inside another function in Python? [duplicate]
- Visual Studio Code Intellisense is very slow – Is there anything I can do?
- Extract traceback info from an exception object
- Why (0-6) is -6 = False? [duplicate]
- VSCode: There is no Pip installer available in the selected environment
- Disable auto wrap long line in Visual Studio Code
- How to use PyCharm to debug Scrapy projects
- Visual Studio Code: Intellisense not working
- VSCode doesn’t show poetry virtualenvs in select interpreter option
- How to set Python language specific tab spacing in Visual Studio Code?
- How can I tell where my python script is hanging?
- VSCode pytest test discovery fails
- Why assert is not largely used?
- Debugging: Get filename and line number from which a function is called?
- cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at [duplicate]
- Is there a way to remove unused imports for Python in VS Code?
- Line numbers for every cell in VSCode Jupyter Notebook Cells
- Memory dump formatted like xxd from gdb
- How to find out where a Python Warning is from
- Launch an IPython shell on exception
- What are good ways to make my Python code run first time? [closed]
- Python – How to show graph in Visual Studio Code itself?
- How can I make ipdb show more lines of context while debugging?
- How to attach debugger to a python subproccess?
- jupyter server : not started, no kernel in vs code
- Error loading preloads: Could not find renderer
- Using python’s logging module to log all exceptions and errors
- Break on exception in pydev
- Visual Studio Code terminal doesn’t activate Conda environment
- How do you debug Mako templates?
- How to limit python traceback to specific files
- In the Python debugger pdb, how do you exit interactive mode without terminating the debugging session
- theano – print value of TensorVariable
- Exiting Python Debugger ipdb
- Print a variable’s name and value
- Why do I get a “ModuleNotFoundError” in VS Code despite the fact that I already installed the module?
- Formatter black is not working on my VSCode…but why?
- Use IPython REPL in VS Code
- Printing all the contents of a tensor