简体   繁体   中英

How to properly debug Python in vscode?

I am confused with the Run Selection/Line in Python Terminal command. In my VsCode (Windows 11). I have two commands with the same shortcut Shift+Enter .

One is launching an Interactive Jupyter notebook (awful). The other sends it to a Python Terminal (better). My ideal case would be to send it to an Ipython terminal.

How to configure that properly?

在此处输入图像描述

Could you try this?

"terminal.integrated.defaultProfile.windows": "IPython",

"IPython": {
  "path": "C:\\Work\\python3.10\\.venv\\Scripts\\ipython.exe"  //The path to the ipython.exe, please take care of which ipython you have selected, this means which python interpreter selected in the terminal.
},

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM