This is a migrated thread and some comments may be shown as answers.

Debug cloud code for data

2 Answers 55 Views
Cloud Code
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phil
Top achievements
Rank 1
Phil asked on 29 Jan 2015, 11:27 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Anton Dobrev
Telerik team
answered on 30 Jan 2015, 12:52 PM
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.
 
0
Phil
Top achievements
Rank 1
answered on 30 Jan 2015, 10:43 PM
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.
Tags
Cloud Code
Asked by
Phil
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Phil
Top achievements
Rank 1
Share this question
or