The Welkin Suite Forum

Debugging Anonymous Apex



Debugging Anonymous Apex

  • Please log in to reply

#1

aday@ivey.ca

    Posted 08 Apr 2016

    I am a new user to your software and I am just evaluating it for our use.


    I did notice a small issue while debugging in v0.28.2.4.


    When I first launch the debugger it highlights line 8 for some reason (See Image Capture1.jpg)

    When I hit F10 for the first time it highlighted line 14 (See Image Capture2.jpg)

    When I hit F10 for the second time it highlighted line 4 (See Image Capture3.jpg)

    When I hit F10 for the third time it highlighted line 1 (See Image Capture4.jpg)


    Once is gets to line 1 debugging proceeds as expected. Not sure what it is doing for the first 3 jumps.



    I also noticed i can see variable values in my Locals window just fine but the values in my watch window do not seem to me working (See Image Capture5.jpg)


    Thanks,








    2 replies to this topic

    #2

    kate.dulko

      Posted 08 Apr 2016

      Hi,


      Thank you for your contacting us with this question.


      As for the navigation through your Anonymous Apex code, all the steps are got from the Log file which is related to this execution. You can verify this locally. 

      The incomprehensible step is the going to the first line (Capture4.jpg).

      If this is possible for you, you can send us the log file related to this Anonymous Apex to our email info@welkinsuite.com. We will verify the correctness of the execution of the Debugging process in this case.


      As for the variable values, I should say that currently TWS doesn't support this type of Locals. This will be implemented later.


      Regards,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

      twitter: @KateDulko
      skype id: d_katerina
      e-mail: kate.dulko@welkinsuite.com

       

        


      #3

      kate.dulko

        Posted 11 Apr 2016

        Hi Andrew,


        Thank you for your Salesforce log file related to the mentioned Anonymous Apex execution.


        In general, the Debugging process in Anonymous Apex files begins from the initialization of variables. These are the strings 'VARIABLE_SCOPE_BEGIN' inside the log file. In your case, these are the line numbers 29-31 inside the SF log file, so you can verify this.


        Then the Debugging navigates goes to the point of entry reported by SF. In Anonymous Apex execution this is the first line entry always. After this the Debugging process goes through all the other strings.


        Our team will work on the improving of this process.

        I'll keep you updated if any changes are made for this.


        Regards,

        Kate


        Kate Dulko
        Customer Relations

        The Welkin Suite

        twitter: @KateDulko
        skype id: d_katerina
        e-mail: kate.dulko@welkinsuite.com

         

          





        Boost Your Productivity. Get Started Today

        Try Free Trial