Python Debugger / IDE ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • krypto.wizard@gmail.com

    #1

    Python Debugger / IDE ??

    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.

    Every help is greatly appreciated.

    Thanks

  • olsongt@verizon.net

    #2
    Re: Python Debugger / IDE ??


    krypto.wiz...@g mail.com wrote:[color=blue]
    > 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.
    >
    > Every help is greatly appreciated.
    >
    > Thanks[/color]

    I've always been happy with the debugger in PythonWin. You can even
    use:

    from pywin.debugger import set_trace;set_t race()

    to bring up the debugger directly from a script that wasn't originally
    run in the ide.

    Comment

    • Rene Pijlman

      #3
      Re: Python Debugger / IDE ??

      krypto.wizard@g mail.com:[color=blue]
      >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.[/color]

      Here's a recent thread about IDEs:


      --
      René Pijlman

      Comment

      • danmcleran@yahoo.com

        #4
        Re: Python Debugger / IDE ??

        >Is there any editor or IDE in Python (either Windows or Linux) which[color=blue]
        >has very good debugging facilites like MS VisualStudio has or something
        >like that.[/color]

        I've been using Eclipse with PyDev and am very happy with it.

        Comment

        • Scott David Daniels

          #5
          Re: Python Debugger / IDE ??

          krypto.wizard@g mail.com wrote:[color=blue]
          > 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.
          >
          > Every help is greatly appreciated.
          >
          > Thanks
          >[/color]
          If you don't mind spending (not so much) money, ActiveState's Komodo
          is a nice debugger. With it you can even debug a Python program on
          a remote machine over a network connection (ideal for GUI problems).

          --Scott David Daniels
          scott.daniels@a cm.org

          Comment

          • bruno at modulix

            #6
            Re: Python Debugger / IDE ??

            krypto.wizard@g mail.com wrote:[color=blue]
            > 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.

            HTH
            --
            bruno desthuilliers
            python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
            p in 'onurb@xiludom. gro'.split('@')])"

            Comment

            • krypto.wizard@gmail.com

              #7
              Re: Python Debugger / IDE ??

              My code has got big and it is an iterative program. I use print
              statements but I thought I could get something handy it would be useful
              to me.

              thanks

              Comment

              • Larry Bates

                #8
                Re: Python Debugger / IDE ??

                krypto.wizard@g mail.com wrote:[color=blue]
                > 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.
                >
                > Every help is greatly appreciated.
                >
                > Thanks
                >[/color]
                I've found that using logging works well for me. I put statements in
                my program that log information, trace, intermediate results, ..., and
                wrap them in trace/debug if statements. Higher values of debug get more
                "stuff" logged. Then I leave everything in the program. When something
                goes wrong, run it with debug level and I can figure out what is
                happening. This is especially good when problem pops up 2 years from
                now. I just have client run with debug=4 and I look at the logfile. If
                you get in a habit of writing ALL your software this way, you find that
                it is quite powerful and easy. I haven't found the overhead of all the
                if statements to be anything to worry about. You can use the standard
                library logging module (I wrote my own before it was available and I've
                never changed to the one in the standard library).

                -Larry Bates

                Comment

                • Felipe Almeida Lessa

                  #9
                  Re: Python Debugger / IDE ??

                  Em Ter, 2006-03-14 às 09:44 -0800, danmcleran@yaho o.com escreveu:[color=blue][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.[/color]
                  >
                  > I've been using Eclipse with PyDev and am very happy with it.[/color]

                  I second that. It's the best Python IDE I've ever used. But you won't
                  get too far with less than 512 MiB of RAM...

                  --
                  "Quem excele em empregar a força militar subjulga os exércitos dos
                  outros povos sem travar batalha, toma cidades fortificadas dos outros
                  povos sem as atacar e destrói os estados dos outros povos sem lutas
                  prolongadas. Deve lutar sob o Céu com o propósito primordial da
                  'preservação' . Desse modo suas armas não se embotarão, e os ganhos
                  poderão ser preservados. Essa é a estratégia para planejar ofensivas."

                  -- Sun Tzu, em "A arte da guerra"

                  Comment

                  • jean-michel bain-cornu

                    #10
                    Re: Python Debugger / IDE ??

                    olsongt@verizon .net wrote:[color=blue]
                    > I've always been happy with the debugger in PythonWin. You can even
                    > use:
                    >
                    > from pywin.debugger import set_trace;set_t race()
                    >
                    > to bring up the debugger directly from a script that wasn't originally
                    > run in the ide.[/color]
                    I use that one also.
                    There is also Boa (http://boa-constructor.sourceforge.net/), available
                    both in Linux and Windows, and with the avantage of having a separate
                    process for the debugging unit, which is great when you have to explore
                    some unsane scripts.
                    Regards
                    jm

                    Comment

                    • jean-michel bain-cornu

                      #11
                      Re: Python Debugger / IDE ??

                      bruno at modulix wrote:[color=blue]
                      > FWIW, I've almost never used a debugger with Python.[/color]
                      It's pourtant very simpa from time to time !

                      Comment

                      • Christoph Zwerschke

                        #12
                        Re: Python Debugger / IDE ??

                        krypto.wizard@g mail.com schrieb:[color=blue]
                        > 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]

                        You can try out PyScripter, a relatively new Python IDE that is
                        completely free and has nice debugging and unit testing facilities.

                        The latest version is available here:


                        -- Christoph

                        Comment

                        • krypto.wizard@gmail.com

                          #13
                          Re: Python Debugger / IDE ??

                          I like the Pyscripter, is there any Linux version or something of it.
                          Christoph Zwerschke wrote:[color=blue]
                          > krypto.wizard@g mail.com schrieb:[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]
                          >
                          > You can try out PyScripter, a relatively new Python IDE that is
                          > completely free and has nice debugging and unit testing facilities.
                          >
                          > The latest version is available here:
                          > http://mmm-experts.com/Downloads.asp...ersionInfo=yes
                          >
                          > -- Christoph[/color]

                          Comment

                          • Christoph Zwerschke

                            #14
                            Re: Python Debugger / IDE ??

                            krypto.wizard@g mail.com wrote:[color=blue]
                            > 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.

                            -- Christoph

                            Comment

                            • Bruno Desthuilliers

                              #15
                              Re: Python Debugger / IDE ??

                              krypto.wizard@g mail.com a écrit :[color=blue]
                              > My code has got big[/color]

                              How big ? More than 50 kloc ?-)

                              Big project doesn't imply long functions nor fat classes.
                              [color=blue]
                              > and it is an iterative program.[/color]

                              Sorry, I don't understand what you mean by "iterative" here.

                              Comment

                              Working...