Many times I've needed to debug something with dsm()(or any other variant) but didn't have permission for devel so I had to either temporarily give permission to the user role I wanted to test or switch into another account which often meant different "environment".

Sometimes when a quick fix is needed I think it would be nice if devel would allow me, as a developer with access to the code, to temporarily bypass the permissions with additional argument, like dsm($var, $name = NULL, $give_permission = FALSE). Thne I would not have to move around and change permissions(not to mention not forgetting to remove them afterwards) or switching to another account which may cause a different data, etc..

Yes, if I forget to remove this form the code the end-user will be able to see this but it is my responsibility as a developer and not that big price in eaxchange for better DX.

Comments

willzyx’s picture

Status: Active » Closed (won't fix)

@ivanjaros IMHO this is a very bad idea. I understand the DX advantage of this proposal but I think that exposing devel information without access checking can be very dangerous. Marking this issue as won't fix