Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse: Run/Debug current file

In search of a Python debugger I stumbled upon Aptana, which is based on eclipse.

Often, I want to debug a single python script. However, Aptana won't let me run/debug the currently opened file directly.

Instead, it requires me to create a debug/run configuration for each file I would like to run/debug. Alternatively I could create a Python project in Aptana.

But: I don't want to. I just want to be able to run or debug the currently opened file. This way I would like to debug my scripts without being forced to create a project first (for each single script!).

Can it be that hard?

like image 815
robert Avatar asked Dec 06 '25 01:12

robert


1 Answers

This is because Aptana/Eclipse doesn't "realize" that the file you opened should be debugged using the Python debugger as it's not associated with a Python project/perspective (there's a lot of environment setup when a project is created in Aptana/Eclipse).

The simplest solution, IMO, would be to create a simple sandbox Python project and just stick your files in there to run/debug. Aptana should then realize you're dealing with Python and start running the Python debugger without setup (that's my experience w/ PyDev in Eclipse, at any rate).

like image 186
Derek Springer Avatar answered Dec 07 '25 13:12

Derek Springer