What is the shortcut for Debug in PyDev using Eclipse

Hotkey F11to start debugging. But the problem is that I have to be in this file, and then press F11 to start debugging. For instance.

My file to run the application is " launch.py" and " example.py".
example.pyopen in the editor, but launch.pynot.
Now, if I click F11, it will try to start the application using " example.py" and exit due to an error (as expected).

So, I have to open the " launch.py" in the editor and then click F11to start debugging the application.
Is there any neat way to configure debugging so that it launches the application in one click / key?

Edit: example.py- this is another file (some module). It does not start the application.

+5
source share
3 answers

As this PyDev Eclipse Tutorial suggests :

After the first run, if you type Ctrl+ F11, the last file will be re-run. Or, if you type only F11, the debugging session starts from your last run. Let me check it out ...

Note. This behavior has changed in Eclipse 3.3, but it is usually recommended to restore it in the settings at: and install on . This tutorial will always consider this as the default option. window > preferences > Run/Debug > Launching Launch Operation Always launch the previously launched application

alt text

, ?
launch.py, .

+5

, , -, , , ...

Java , Java . python - ( python script )...

Java, main(String[] args), ( , , )

alt + shift + x, j

, Python, - , Java... , VonC, ( , )

ctrl + f11

python.

... , , , Java, .py? , .py, , ...

! , , - ( Ivan, , !), ,

f9

python.

, - ...

+3

I am using CTRL + SHIFT + F9 to restart the previous debug configuration in Pydev.

+1
source

All Articles