0

My problem is very similar to this . But adding necessary user(Site owner) to Debug Logs doesn't help me. I don't see any logs at all. But webservice works well.

marked as duplicate by Adrian Larson apex Apr 26 '17 at 9:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Looks like the webservice / rest service is hosted as public using Sites. I guess while calling the webservice from your client, you just need set the cookie. Something like

http.setHeader('Cookie', 'debug_logs=debug_logs,domain=.force.com')

The post Adrian linked has more details about this update. Moreover check if you can set the Traced Entity Type as your Rest Class and see if puts some log out. enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.