TraceMethod not working as expected

Home Forums CodeSite TraceMethod not working as expected

Viewing 2 reply threads
  • Author
    Posts
    • #2889
      Andy Bell
      Participant

        Hi

        I’m using CodeSite V5.4.0 with C++ Builder 10.2 and just testing how it works.

        I have this simple code:

        CS->TraceMethod(“Test method”);
        for (auto i = 0; i < 10; i++) {
        CS->SendError(“Log message”);
        CS->SendWarning(“Warning message”);
        CS->SendScreenShot(“Screen shot”, (unsigned)this->Handle);
        }

        return;

        but the output is as per the attached screen shot. It doesn’t look right to me. Am I using it wrong?

        AndyCS issue

         

      • #2891
        Ray Konopka
        Keymaster

          Hi,

          No, you are not using it incorrectly. Unfortunately, there was a change in C++Builder (I do not remember the precise version), but it broke the TraceMethod functionality. It’s on our list of things to fix for the next major release. In the meantime, you can use the EnterMethod/ExitMethod approach to group your CodeSite messages by method.

          Ray

        • #2892
          Andy Bell
          Participant

            Thanks Ray

            Andy

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.