Await an async function in Python debugger

Here a modified version of what I posted at https://stackoverflow.com/a/67847257/893857 since it also solves this problem. I found a solution using nest_asyncio. If one has the following async example script: import asyncio import nest_asyncio async def bar(x): return x + 1 async def foo(): import ipdb; ipdb.set_trace() if __name__==”__main__”: loop = asyncio.get_event_loop() nest_asyncio.apply(loop) loop.run_until_complete(foo()) One … Read more

Conda and Visual Studio Code debugging

I found a better solution, based on the previous ones: Go to Workplace Settings. Override the parameter python.venvPath with the Path to folder with a list of Virtual Environments. For the case of anaconda: This setting enables VS Code to recognize the available conda environments. Thus, we can click on the current python interpreter and … Read more

Accessing console and devtools of extension’s `background` script

You’re looking at the wrong place. These console messages do not appear in the web page, but in the invisible background page (ManifestV2) or service worker (ManifestV3). To view the correct console open devtools for the background script’s context: Visit chrome://extensions/ or right-click the extension icon and select “Manage extensions”. Enable developer mode Click on … Read more

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.

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

React debug Using VSCode and Firefox instead of Chrome

The mentioned plugin has the following github prepository: https://github.com/hbenl/vscode-firefox-debug Also if you look over the documentation better it states to do apply the following configuration over firefox in order to enable the debugging: The changes above can get applied via typing about:config to your browser’s address bar. Afterwards in order to debug just use the … Read more

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