Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Re: Debug Report Builder Source Code

edited October 2003 in General
Greetings,

How does one debug ReportBuilder source code?

Cheers,
Tim Armstrong

Comments

  • edited October 2003
    Hi Tim,

    You can point you library path to the \RBuilder\Source\... to debug the
    ReportBuilder source.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    Hey Nico,

    C:\Program Files\Borland\Delphi6\RBuilder\Source

    Yupper. That's in my library path. Do you have to compile the RB.DPK's with
    the compilers options turned on?

    Tim

  • edited October 2003
    Hi Tim,

    That should do it for you. Now that you have \RBuilder\Source in your
    library path you are building your applications with the ReportBuilder
    source. Now you can set stops in our source and step through it to possibly
    debug any problems. There should be no need to recompile the ReportBuilder
    packages.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    Hey Nico,

    Nope. I still can debug report builder source code. If I put a breakpoint on
    line I wish to break on, it turns into a little redcircle with a X through.
    I do believe that designates the break point is invalid.

    Report builder does not turn off debug some where in the source code do
    they?

    Regards,
    Tim

  • edited October 2003
    Hey Nico,

    When I do a build all with integrated debugger turn on, I do not see the
    pp*.* files being compiled with the rest of my files. I must be missing
    something else. Sorry for the inconvenience.

    Regards,
    Tim

  • edited October 2003
    Hi Tim,

    Be sure you \Rbuilder\Lib is no longer in your path. When a break point
    has an x through it, this just means the code was never executed. As a test
    place a report and a button on a form and in the button's onClick event call
    ppReport1.Print;

    Then place a break point in the constructor of the TppPreview class located
    in the ppPreview.pas file. We know this code will be executed when the
    button is clicked. Now when you run your app, it should break after you
    click the button.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    U DA MAN! The \Rbuilder\Lib was before my \Rbuilder\Source dir in the libary
    path.

    Thanks Nico!

  • edited October 2003
    Ok here's one for the birds ...

    You can debug ReportBuilder source with "Build with runtime packages" turn
    on!

  • edited October 2003
    Hi Tim,

    For debuging purposes, you should be able to turn the "Build with runtime
    packages" off and debug with your original source. If this option will not
    work for you. I did a quick search in Google Groups
    (http://www.google.com/groups) for Delphi runtime package debug, and it
    returned numerous articles on the subject.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.