The Welkin Suite Forum

Debugging and hitting break points



Debugging and hitting break points

  • Please log in to reply

#1
windows version welkinsuite

derricke

    Posted 05 Jan 2018 and edited 12 Jan 2018

    I am fairly new to TWS but what got me to use TWS is the ability to hit break points and walk through code.  However,  I am having trouble hitting the break point which I need to hit. I find that it puts me on a line in my class that I didnt even set a break point at. What I am currently experiencing is I am calling an instance of my class and putting a break point on the first line of the method I am invoking.  It accepts the break point but when I start debugging now the break point says it can be hit and it stops on a line which I did not have  a break point on.  If you can advise if I am not using it correctly because I am having trouble with debug anon apex. 

    Thank you


    Derrick




    3 replies to this topic

    #2

    vlgubanovich

      Posted 08 Jan 2018

      Hi Derrick,


      Thank you for your question.

      The behavior that you are describing might be related to the 2MB log file limitation in Salesforce - if you're trying to debug a large part of logic that generates more than 2MB of logs, Salesforce will truncate the log file thus you won't be able to debug the later stages of the execution flow. 

      Can I please ask you to check if you can find the corresponding log entries (to the line of code that you are debugging) in your log file? And just to double-check and ensure - can you please confirm that the line of code where you have a breakpoint is 100% hit in the session that you're debugging?


      In case if the 2MB limitation is the reason in your situation - the only solution is to try debugging smaller parts of your logic. You can debug smaller parts using Anonymous Apex, for example.


      Looking forward hearing back from you.


      Best Regards,

      Vladimir


      Vladimir Gubanovich
      Head of Product
       
      The Welkin Suite
      skype id: vladimir.gubanovich
      e-mail: vladimir.gubanovich@welkinsuite.com


      #3

      derricke

        Posted 10 Jan 2018

        Thanks Vladimir.  It was the 2MB log file limitation. I will just use the anon apex when possible. Thank you for the explanation.


        Derrick



        #4

        vlgubanovich

          Posted 12 Jan 2018

          Hi Derrick,


          Thank you for getting back with the update - I'm happy that the Debugger works for you that way.


          Please feel free to let us know if you'll have any other questions or ideas :)


          Best Regards,

          Vladimir


          Vladimir Gubanovich
          Head of Product
           
          The Welkin Suite
          skype id: vladimir.gubanovich
          e-mail: vladimir.gubanovich@welkinsuite.com





          Boost Your Productivity. Get Started Today

          Try Free Trial