Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. forever PRINT still the most powerful debugger

forever PRINT still the most powerful debugger

Scheduled Pinned Locked Moved The Lounge
debuggingphpcomhelp
18 Posts 12 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mahmoud Zidan
    wrote on last edited by
    #1

    Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

    N 1 M A realJSOPR 6 Replies Last reply
    0
    • M Mahmoud Zidan

      Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      In my modern programming environment I just use an integrated debugger, I can step in code, set breakpoints and watch variables, is all so easy, one reason why I don't use PHP.

      .net is a box of never ending treasures, every day I get find another gem.

      O M E 3 Replies Last reply
      0
      • N NormDroid

        In my modern programming environment I just use an integrated debugger, I can step in code, set breakpoints and watch variables, is all so easy, one reason why I don't use PHP.

        .net is a box of never ending treasures, every day I get find another gem.

        O Offline
        O Offline
        originSH
        wrote on last edited by
        #3

        I was just about to post something similar ;) If PRINT is your most powerful debugger you need to get a new environment :P

        1 Reply Last reply
        0
        • M Mahmoud Zidan

          Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

          1 Offline
          1 Offline
          123 0
          wrote on last edited by
          #4

          [Message Deleted]

          N A 2 Replies Last reply
          0
          • N NormDroid

            In my modern programming environment I just use an integrated debugger, I can step in code, set breakpoints and watch variables, is all so easy, one reason why I don't use PHP.

            .net is a box of never ending treasures, every day I get find another gem.

            M Offline
            M Offline
            Mahmoud Zidan
            wrote on last edited by
            #5

            These inventions -step in code, set breakpoints and watch variables- already available with php but the problem is that they are not working under all conditions -PHP debugger[^]-PHP debugger[^]-VS PHP debugger[^]- Mahmoud Zidan

            1 Reply Last reply
            0
            • 1 123 0

              [Message Deleted]

              N Offline
              N Offline
              NormDroid
              wrote on last edited by
              #6

              Thats why he using PRINT and INPUT, actually a system I'm converting here runs on unix and the only way to debug is to use printf() and getchar() :wtf:

              .net is a box of never ending treasures, every day I get find another gem.

              M 1 Reply Last reply
              0
              • M Mahmoud Zidan

                Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #7

                Dude! Get with the times! The reason for all this newfangled (yet retro) declarative coding is so that the users can fix the bugs! Marc

                Thyme In The Country
                Interacx

                People are just notoriously impossible. --DavidCrow
                There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                1 Reply Last reply
                0
                • M Mahmoud Zidan

                  Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

                  A Offline
                  A Offline
                  Anna Jayne Metcalfe
                  wrote on last edited by
                  #8

                  (well, not as much, at least) ;P

                  Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                  O 1 Reply Last reply
                  0
                  • 1 123 0

                    [Message Deleted]

                    A Offline
                    A Offline
                    Abu Mami
                    wrote on last edited by
                    #9

                    Yeah! I output my debug stuff to a parallel port where it's displayed as binary on LEDs. (I just can't escape my mainframe days - many, many years ago)

                    W 1 Reply Last reply
                    0
                    • M Mahmoud Zidan

                      Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      Chuck Norris wouldn't use a debugger. He would just roundhouse kick the code into submission.

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      1 Reply Last reply
                      0
                      • A Abu Mami

                        Yeah! I output my debug stuff to a parallel port where it's displayed as binary on LEDs. (I just can't escape my mainframe days - many, many years ago)

                        W Offline
                        W Offline
                        WillemM
                        wrote on last edited by
                        #11

                        Time to upgrade to a matrix operator display, just as fancy in my opinion.

                        WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson

                        1 Reply Last reply
                        0
                        • M Mahmoud Zidan

                          Currently I'm working in a PHP project , My experience with PHP 2 months ago was zero, add to this that we used to use MS products about 6 years, The problem that I face now is that I have no running debugger for our project so in this situation like always I insert PRINT after every snippet of code and trace the output of PRINT for debugging, I'm enjoying PRINT:laugh:. Mahmoud Zidan

                          N Offline
                          N Offline
                          Nemanja Trifunovic
                          wrote on last edited by
                          #12

                          There are people who just don't see any value in a debugger. When I asked for a decent JavaScript debugger a couple of years ago, the universal answer was: "just use alert" :)


                          Programming Blog utf8-cpp

                          1 Reply Last reply
                          0
                          • A Anna Jayne Metcalfe

                            (well, not as much, at least) ;P

                            Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                            O Offline
                            O Offline
                            originSH
                            wrote on last edited by
                            #13

                            because when your tests fail you wont have to find why? :P

                            A 1 Reply Last reply
                            0
                            • O originSH

                              because when your tests fail you wont have to find why? :P

                              A Offline
                              A Offline
                              Anna Jayne Metcalfe
                              wrote on last edited by
                              #14

                              That's about the only time you should ever need it. ;)

                              Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                              O 1 Reply Last reply
                              0
                              • N NormDroid

                                Thats why he using PRINT and INPUT, actually a system I'm converting here runs on unix and the only way to debug is to use printf() and getchar() :wtf:

                                .net is a box of never ending treasures, every day I get find another gem.

                                M Offline
                                M Offline
                                MidwestLimey
                                wrote on last edited by
                                #15

                                That just brought back nightmares of coding c on UNIX. Blue telnet screens and printf(), lots of coffee and late nights, err early mornings rather.

                                N 1 Reply Last reply
                                0
                                • A Anna Jayne Metcalfe

                                  That's about the only time you should ever need it. ;)

                                  Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                                  O Offline
                                  O Offline
                                  originSH
                                  wrote on last edited by
                                  #16

                                  :D

                                  1 Reply Last reply
                                  0
                                  • N NormDroid

                                    In my modern programming environment I just use an integrated debugger, I can step in code, set breakpoints and watch variables, is all so easy, one reason why I don't use PHP.

                                    .net is a box of never ending treasures, every day I get find another gem.

                                    E Offline
                                    E Offline
                                    El Corazon
                                    wrote on last edited by
                                    #17

                                    norm .net wrote:

                                    In my modern programming environment I just use an integrated debugger

                                    This is sometimes difficult, even if the debugger supports embedded/remote mode. In live-environments, where data is coming in steady streams, the best way is still a super-print debugging. I stream a debug network socket to another computer (or monitor) with a steady stream of organized data. It is strongly resembling some of the modern debuggers, but works remotely and without interrupting the data stream. Since the input and GUI are on different threads, you can even stop the screen update without affecting the debug stream in background and then start watching again. Not quite as good as break points, but break points don't always help when breaking the data flow causes more problems than it helps.

                                    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                    1 Reply Last reply
                                    0
                                    • M MidwestLimey

                                      That just brought back nightmares of coding c on UNIX. Blue telnet screens and printf(), lots of coffee and late nights, err early mornings rather.

                                      N Offline
                                      N Offline
                                      NormDroid
                                      wrote on last edited by
                                      #18

                                      I've looked briefly at the debugger and gave it up, luckily the work I do is to port the shit from unix over to windows.

                                      .net is a box of never ending treasures, every day I get find another gem.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups