The Welkin Suite Forum

[Solved] Debugger fails on @RemoteAction methods



Debugger fails on @RemoteAction methods

  • Please log in to reply

#1
windows version welkinsuite

dave

    Posted 13 Jul 2018 and edited 23 Jul 2018

    Dunno if this has been talked about before. 

    Has anybody gotten the debugger to work correctly on logs for @RemoteAction methods? For me, it seems to start well then gets confused and changes to the VF source file and steps through that. I haven't verified this but I assume the line numbers are correct for the apex but it's showing the wrong file. 

     



    3 replies to this topic

    #2

    kate.dulko

      Posted 17 Jul 2018

      Hi Dave,


      Thank you for contacting us on this.


      We are going to investigate this case, and meantime, I kindly ask you to check the file's ID that is which is related to the @RemoteAction method in your log file which you debug, and compare this ID with the ID of your Apex class and Visualforce page.

      To find an ID of your Apex class or Visualforce page file, please open the project folder (you can easily navigate to it using the 'Open Folder in File Explorer' command from the context menu of your project in the Solution Explorer) and please open the related *.sfproj file using any text editor. There you would be able to check an ID of the necessary file.


      Looking forward to your response.


      Thank you,

      Kate



      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        

      • 1

      #3

      dave

        Posted 18 Jul 2018

        Hi Kate. Thanks for the response. 


        The start of the log looks like below, a bit redacted but basically the same.


        The first Id on line 4 is the VF file that calls the remote action from JS. The Id near the end of this is the Apex controller that holds the remote action code.  I did just find that if I replace that first VF Id with the Apex Id, the debugger works correctly!

        42.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;NBA,INFO;SYSTEM,FINE;VALIDATION,INFO;VISUALFORCE,FINE;WAVE,INFO;WORKFLOW,INFO
        21:02:02.0 (99607)|USER_INFO|[EXTERNAL]|00560000003gbE1|me@client.com.sand|Eastern Standard Time|GMT-04:00
        21:02:02.0 (156669)|EXECUTION_STARTED
        21:02:02.0 (162119)|CODE_UNIT_STARTED|[EXTERNAL]|06660000000PzfL|VFRemote: TheController invoke(UpdatePreference)
        21:02:02.0 (183837)|SYSTEM_MODE_ENTER|true
        21:02:02.0 (1072532)|VARIABLE_SCOPE_BEGIN|[22]|TheController.var1|Boolean|false|true
        21:02:02.0 (1542230)|VARIABLE_SCOPE_BEGIN|[19]|TheController.var2|Map<String,List<customType>>|true|true
        21:02:02.0 (1602847)|VARIABLE_SCOPE_BEGIN|[25]|TheController.var3|List<String>|true|true
        21:02:02.0 (1736207)|HEAP_ALLOCATE|[72]|Bytes:3
        21:02:02.0 (1794477)|HEAP_ALLOCATE|[77]|Bytes:152
        21:02:02.0 (1814984)|HEAP_ALLOCATE|[342]|Bytes:408
        21:02:02.0 (1834774)|HEAP_ALLOCATE|[355]|Bytes:408
        21:02:02.0 (1854566)|HEAP_ALLOCATE|[467]|Bytes:48
        21:02:02.0 (1887855)|HEAP_ALLOCATE|[139]|Bytes:6
        21:02:02.0 (1912765)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:25
        21:02:02.0 (1923373)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:1212
        21:02:02.0 (1929117)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:286
        21:02:02.0 (1934961)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:163
        21:02:02.0 (1960199)|METHOD_ENTRY|[1]|01p60000000HxEu|TheController.TheController()
        21:02:02.0 (1974174)|STATEMENT_EXECUTE|[1]
        21:02:02.0 (1981731)|STATEMENT_EXECUTE|[1]
        21:02:02.0 (2015263)|HEAP_ALLOCATE|[50]|Bytes:5
        21:02:02.0 (2048647)|HEAP_ALLOCATE|[56]|Bytes:5
        


        #4

        kate.dulko

          Posted 23 Jul 2018


          Hi Dave,


          Thank you for your update!

          I'm happy to hear that this helped to find a reason for the issue and to find the solution.


          I'll close the current topic as Solved, and of course, if you would be faced with any other issues or if you would have any questions - please let us know.


          Have a nice week!



          Best 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