ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

debugging

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • debugging

    hi

    i am having program of 5000 lines.i called that program,i was getting some error.i debugged that program.i cannot find where the error was? even i set breakpoints.it will take long time

    is there any way to find out where the error was coming exactly? i mean about when it get error on which record it reading?

  • #2
    Re: debugging

    Start debug. Don't set a breakpoint. Call the program. The debugger should stop on the line with the problem and highlight it... (assuming your using the interactive debugger).

    Comment


    • #3
      Re: debugging

      You can.. When you call the program and the error appears.you just need to go to your job and find RRN of the open files if you are looking at your physical file. If you are getting a error wit some operation. and you want to know the line i suppose the previous post resolves it.
      Thanks N Regards

      Krishnakumar
      !

      Comment


      • #4
        Re: debugging

        how to get the rrn of the file...can u please explain the steps

        Comment


        • #5
          Re: debugging

          Dspjob

          f14

          f11
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: debugging

            Originally posted by jamief View Post
            Dspjob

            f14

            f11


            Can you tighten that response up a bit please? Your way too "wordy".

            Comment


            • #7
              Re: debugging

              Im a lazy son of a buck!
              All my answers were extracted from the "Big Dummy's Guide to the As400"
              and I take no responsibility for any of them.

              www.code400.com

              Comment


              • #8
                Re: debugging

                The joblog should tell you which line of code had the error. The only thing is if that line is in a loop you won't know which iteration it falls over on.
                Ben

                Comment


                • #9
                  Re: debugging

                  Originally posted by rajapandian
                  hi

                  even i set breakpoints.it will take long time
                  It won't take a long time if you
                  1. have a dump to check the error record from or know a few values in the error record anyhow.
                  2. use "when" with the breakpoints to set it to the line only when the error condition occurs.
                  â??No bird soars too high if he soars with his own wingsâ?? â?? William Blake

                  Comment


                  • #10
                    Re: debugging

                    See the Dump it may help you ...to find On which record or which subroutine your programe struck ....


                    Or another command is DSPJOBLOG

                    hope it help
                    Young people knows how to run fast but old people knows the way..

                    Comment

                    Working...
                    X