Python Debugger / IDE ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ritesh Raj Sarraf

    #16
    Re: Python Debugger / IDE ??

    Can you please point some good documents (need not be Python specific)
    on best practices with writing code this way ?

    Thanks,
    Ritesh

    Comment

    • Don Taylor

      #17
      Re: Python Debugger / IDE ??

      Christoph Zwerschke wrote:[color=blue]
      > krypto.wizard@g mail.com wrote:
      >[color=green]
      >>I like the Pyscripter, is there any Linux version or something of it.[/color]
      >
      >
      > Sorry, I forgot to mention that there is a snag in it. Since PyScripter
      > is based on Python for Delphi, it is available for Windows only.
      >[/color]

      Is there a free or low-cost version of Delphi for Windows available
      anywhere?

      Pyscripter looks interesting but when I went to the Borland site to find
      out about the cost of Delphi I went into catatonic shock. They can't be
      serious.

      Then I read on Wikipedia that "On February 8th, 2006, Borland announced
      that it was looking for a buyer for its IDE and Database line of
      products, which included Delphi, to concentrate on its Application
      Lifecycle Management line."

      So I guess it is at the end of its life, at least with Borland. Maybe
      they will FOSS it? Nah...

      Don.

      Comment

      • Rowdy

        #18
        Re: Python Debugger / IDE ??

        Don Taylor wrote:[color=blue]
        > Is there a free or low-cost version of Delphi for Windows available
        > anywhere?
        >[/color]
        <snip>

        There used to be a Delphi 6 Personal Edition that was available free
        (for non-commercial use). You might still find it around somewhere.

        Rowdy

        Comment

        • robert

          #19
          Pythonic debugging - Re: Python Debugger / IDE ??

          bruno at modulix wrote:
          [color=blue]
          > krypto.wizard@g mail.com wrote:
          >[color=green]
          >>Is there any editor or IDE in Python (either Windows or Linux) which
          >>has very good debugging facilites like MS VisualStudio has or something
          >>like that.
          >>
          >>I like SPE but couldn't easily use winPDP. I need tips to debug my code
          >>easily.[/color]
          >
          >
          > pythonic "debugging" in three steps:
          >
          > 1/ unit tests
          > 2/ a bunch of print statements
          > 3/ the interactive python shell
          >
          > All this relying on well-decoupled, modular code.
          >
          > FWIW, I've almost never used a debugger with Python.[/color]

          Thats a good socket for Python.
          Arduos step-in debugging, big tedious remote debugging sessions etc. are
          not really Pythonic. For complex things like GUI's and application
          servers its a weak practice.

          logs, postmortem debugging and ad-hoc debugging are the things to go next.

          so its good when you can do .pm() .set_trace() to call the debugger
          from the nature of your program. (And not: "The the debugger now calls
          the app, once my level of anger raised beyond a certain limit").

          For example with callable debuggers like pdb and also Pythonwin
          (Pythonwin debugger "pywin.debugger .pm()" e.g. can be raised as simple
          from normal apps / shell ) I simply do this in apps regularly:

          if debug: sys.excepthook = excepthook_my_d ebugger

          As soon as stuff crashes down (even in GUI message handlers) during all
          of the development cycle: you have your fingers and cursor automatically
          & immediatly at the stack context. That does >99% of usual python code
          cooking. The rest is maybe for a (slow) breakpoint "b"

          Unfortunately such method is not encouraged and exposed (clearly) in the
          big IDE's. Those' overall style is a lazy copy of C, Java "I do"-hacker
          history. Im curious much about their value at all. Keep it simple and
          let Python do.

          Robert




          Comment

          • Christoph Zwerschke

            #20
            Re: Python Debugger / IDE ??

            Don Taylor wrote:[color=blue]
            > Is there a free or low-cost version of Delphi for Windows available
            > anywhere?[/color]

            I don't know (never used Delphi actually). Anyway, you don't need to
            have Delphi to use PyScripter, and PyScripter is completely free.
            However, it will only run on Windows because it is developed with
            Delphi. The advantage is that it is noticeably faster than most other
            free Python IDEs written in Python.

            -- Christoph

            Comment

            • Magnus Lycka

              #21
              Re: Python Debugger / IDE ??

              Don Taylor wrote:[color=blue]
              > Is there a free or low-cost version of Delphi for Windows available
              > anywhere?[/color]

              Sure.

              If my memory serves me correctly, I have several CDs from various
              computer magazines with previous versions of Delphi at home. I don't
              know if such offers have been around recently, but you could check
              some computer magazines with included CDs or DVDs.

              Borlands web site currently says: "Please note that Delphi 2005
              Personal is only distributed through select publications, and is not
              available for download."

              Google for more info... See e.g.



              See also:

              Comment

              Working...