Debug cloud code for data

3 posts, 1 answers
  1. Phil
    Phil avatar
    15 posts
    Member since:
    Oct 2012

    Posted 29 Jan 2015 Link to this post

    Is there a trick to debugging for cloud code for data? I'm able to debug normal cloud code just fine, but using cloud code for data, my breakpoints are never hit. It makes for a very tough time debugging my before/afterUpdate code!
  2. Answer
    Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 30 Jan 2015 Link to this post

    Hi Phil,

    Debugging Cloud Code for Data is explained in this article. Use it when debugging the events in the Cloud Code for Data (e.g. before and after CRUD operations on content types) or your Cloud Functions. Do not forget to add a "X-Everlive-Debug" header as shown in the article and start a debugging session through the Chrome web browser. 

    Could you verify the above on your side and if the problem persists share more details about how to reproduce it?

    I look forward to your reply.

    Best regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  3. Phil
    Phil avatar
    15 posts
    Member since:
    Oct 2012

    Posted 30 Jan 2015 in reply to Anton Dobrev Link to this post

    Thanks. I was thinking that editing data directly in the backend would enable debug mode. I changed to making requests via fiddler and it's working great! 

    Something to consider in the future might be to allow us to enable debug mode while editing data directly in the backend.
Back to Top