简体   繁体   中英

Make VS Code to execute python script in an already running terminal (Ubuntu)

If I have a terminal already running with the required variables exported, is there a way to tell VS Code: "when I press run, start the script in this terminal, instead of starting a new one" while also allow debugging using vs code breakpoints.

According to your supplementary instructions, what you want is to be able to run scripts on external terminals.

This is actually explained in the document .:

在此处输入图像描述

We could change the line "console:" as the following in launch.json:

"console": "externalTerminal",

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