Menu ▾ ▴

"Run/Debug as..." menu in navigator view.

2009-03-02
2013-03-15
  • David Escalona

    David Escalona - 2009-03-02

    Hello there,
    I am writing an specific builder and launch configuration for Python projects using the Pydev navigator view. However, I am experimenting a strange problem:

    There is no problem on build process and build option from navigator popup menu, but I am not able to show the "Run as..." and "Debug as..." options in the contextual menu, at least for Projects. The fact is that if I select a Python file, or Python package, and then I do a right click, the "Run" and "Debug" options are there! but that doesn't happen with projects. I have tried several things, and from main menu it works ok. I have added and verified the launch shortcuts extension points and they have no errors. After that I decided to add JDT to the compilation unit, and surprise, "Run as.." and "Debug as.." options appears with this plugins included.  So, I have no clue what could be wrong with this. Has anybody experienced a similar problem or knows how could I fix it?

    Thanks in advance.

    Regards.

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-03-04

      Well, Pydev doesn't declare a run for projects, just for files/modules, so, that's natural for Pydev, so, it appears JDT is declaring that run config for projects (which you don't seem to be making).

      Note that I haven't checked how to declare that, but I'd expect that if you properly create your launch shortcuts and configurations (as is done in org.python.pydev.debug/plugin.xml), I see no reason why it shouldn't work.

      Cheers,

      Fabio