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
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.
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.