How to log program code in debug mode

2460 pts.
Tags:
AS/400
Hi, How can we cover all program code in debug mode is there any way to log total no. of lines covered in debug mode and it should tell us that these new lines were inserted and modified ideally it should capture all program code during debug mode and at particular point of time we should be able to know that this much percentage of program code is covered and this much is pending for debug all these statics should be covered in a programmatic way.


Software/Hardware used:
AS400
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Nothing that I know of in the debugger of the OS. You may have to look at some 3rd party but even then I don’t think it exists. I don’t see a big market for it. I’ve been in IT since the early 1980’s and never had the need for debugging with those type of parameters..

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Splat
    Changing lines of code during the debugging process only alters the source, not the underlying object.
    12,845 pointsBadges:
    report
  • ToddN2000
    Splat is correct with that. You can change the value of a parameter or field value on the fly but the code will still be run off the objects source code at the time it was compiled.
    127,470 pointsBadges:
    report
  • 6r
    Actually it's more related with iTrace tool.

    Most of the commercial software profilers are very useful tools to analyze program execution. While the major part of object oriented programming languages have IDEs with integrated profilers, for the RPG programmers, this kind of tool is not very common. iTrace is a open-source tool which allows to trace the execution of a program, keeping track of every executed code line. This tool can be very helpful specially in the following cases:

    • Legacy modernization, specially in the program understanding phase
    • Business process mining
    • Test coverage analysis
    • Understand and improve the program flow
    2,460 pointsBadges:
    report
  • 6r
    So I was just trying to get some heads up how to start writing a program which could serve the main intent for this requirement.
    2,460 pointsBadges:
    report
  • GregManzo
    If you are after software profiling (not debugging as originally implied), the box comes with a built in trace tool that will tell you what code is being executed, and how much time is spent in each program. (also very useful for deciding where to spend effort in optimising).
    2,915 pointsBadges:
    report
  • 6r
    But how can I write a program for this?
    2,460 pointsBadges:
    report
  • ToddN2000
    There are already numerous tools that will do this. The code can be quite involved and extensive. Why the desire to do such a complicated task? Is this a class assignment? More info on why you would need a custom code that does code tracing and change management features all in one application is very unusual.
    127,470 pointsBadges:
    report
  • Splat
    Are you trying to emulate the functionality of the iTrace tool or are you trying to make use of the data gleaned by the iTrace tool?
    12,845 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: