D
D
DollyPapper2017-10-29 21:45:39
Python
DollyPapper, 2017-10-29 21:45:39

Variable for Python debug file in VS Code?

Faced a debugging issue in VS Code. The extension that allows you to debug Python code has a launch.json file. I need to debug several files in parallel, and I have to add the name of the module to the program line all the time. Is it possible to somehow make a feint with the ears so that the debugger launches the active file that is currently in focus? Let me explain a little: let's say there are 2 files Parser and Core, I want debugging of Core to start when it is in the Core file, and not the file specified in launch, and, accordingly, while in the Parser file, Parser debugging starts.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JaxxDexx, 2017-10-30
@DollyPapper

I did not work in VS Code, but since no one is answering you here, I will answer.
Judging by the manual, you can create two configurations in the launch.json file and then, before starting the debugger, simply select the required configuration by name .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question