1
votes

This might seem stupid, but I'm about to release an XPage application where I've been using the XPage Debug Toolbar (thankyou Mark, should be my daily mantra).

The only way I've thought of doing this is deleting the entry from my 'layout' Custom Control. Is there a better way to do this?

2

2 Answers

4
votes

Don't do that. What I do is to set up some criteria for when it should be shown. Either some config-setting, a special role - or even checking for the user being you ;-)

This way you can leave it there for later troubleshooting... - which always turns up.

/John

1
votes

Add a little code to determine if it's a development server to the rendering property. Return false if it's not a dev server. That's what we do.