Visual Studio Code with Python: Timeout waiting for debugger connection

Open the launch.json file and add the following configuration: { “name”: “Python: Debug Console”, “type”: “python”, “request”: “launch”, “program”: “${file}”, “console”: “internalConsole” } When you specify none internalConsole for the console, it will run the debugger in the debugger console instead of running in the internal or external terminal.

In VS Code, how can I disable parameter hints? (tooltip/widget that shows function parameter descriptions and overloads)

You turned off code completion correctly. But parameter hints are still active. Turn them off by going into the Settings menu, searching for editor.parameterHints.enabled, and un-checking the box. Or put the following entry in your settings.json: “editor.parameterHints.enabled”: false If you ever want to see the parameter hints on-demand, refer to How to trigger parameter hints … Read more

Disable (or toggle) the wavy underline/squigglies (problems) in VS Code

To disable wavy/squiggly underline in vscode, go to settings.json (Ctrl + Shift + P to access the Command Palette and type “settings.json”) and set underline color to fully transparent: { “workbench.colorCustomizations”: { “editorError.foreground”: “#00000000”, “editorWarning.foreground”: “#00000000”, “editorInfo.foreground”: “#00000000” } } Though it may be better to make underline color just less vibrant: { “workbench.colorCustomizations”: { … Read more

Visual Studio Code – Python debugging – How to step into external functions/packages?

In order to improve the accepted answer by John Smith, it is worth mentioning that now the option has been renamed again. The new option is “justMyCode”: false and as per the documentation When omitted or set to True (the default), restricts debugging to user-written code only. Set to False to also enable debugging of … Read more

How can I disable hover tooltip hints in VS Code?

editor.hover.enabled: false in settings.json to Tooltip Click on Edit in settings.json There are two panes Default User Settings “editor.quickSuggestions”: { “other”: false, “comments”: false, “strings”: false } User Settings “editor.parameterHints.enabled”: false, “editor.suggest.snippetsPreventQuickSuggestions”: false, “html.suggest.html5”: false, “editor.snippetSuggestions”: “none”, This also can be done UI. Setting Snippet Suggestions : false Update August 2018 (version 1.27) Goto File=>Preference=>Settings … Read more

How to set the working directory for debugging a Python program in VS Code?

@SpeedCoder5’s comment deserves to be an answer. In launch.json, specify a dynamic working directory (i.e. the directory where the currently-open Python file is located) using: “cwd”: “${fileDirname}” This takes advantage of the “variables reference” feature in VS Code, and the predefined variable fileDirname. Note as comments say, you might also need to add the purpose … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)