簡體   English   中英

如何在vscode中正確調試Python?

[英]How to properly debug Python in vscode?

Run Selection/Line in Python Terminal感到困惑。 在我的 VsCode (Windows 11) 中。 我有兩個命令具有相同的快捷方式Shift+Enter

一個是啟動交互式 Jupyter 筆記本(糟糕)。 另一個將它發送到 Python 終端(更好)。 我的理想情況是將它發送到 Ipython 終端。

如何正確配置?

在此處輸入圖像描述

你能試試這個嗎?

"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.
},

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM