简体   繁体   中英

Is it possible to debug run a script inside pydev without creating a dedicated project

Pydev has awesome Python debugging features - stepping through the code, visual variable inspection...

Creating a python script file is a relatively quick and easy process in contrast with the bureaucracy that involves creating a full-blown pydev project.

Is it possible to skip the step of project creation when I want to debug a single file python script?

If I just start to debug a script, I get the following error:

在此处输入图片说明

Strange, I can't really reproduce the issue on the '@'.

Still, you do need to have at least the interpreter and one project configured... then, if you open an external file you can just use F9 to create a new launch configuration for it / specify that project to run.

Afterwards, if you specified things as http://pydev.org/manual_101_run.html suggests, you can just use F11 to debug that run configuration or Ctrl+F11 to rerun it.

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