Page MenuHomePhabricator

Allow use of the profiler on xtools-dev.wmflabs.org
Closed, DeclinedPublic1 Story Points

Description

Currently, the profiler toolbar and advanced debugging tools only run on local systems. Let's expand that to include xtools-dev.wmflabs.org.

Probably, the proper way to do this is to create a dotfile in the root of the machine which XTools checks for.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 13 2017, 6:13 PM
Matthewrbowker moved this task from Inbox to Working on the XTools board.Jul 13 2017, 6:17 PM
Matthewrbowker removed Matthewrbowker as the assignee of this task.Aug 9 2017, 1:42 AM
Matthewrbowker moved this task from Working to Other on the XTools board.

https://symfony.com/doc/current/configuration/environments.html#selecting-the-environment-for-console-commands - According to the symfony docs, we need to set two environment variables. SYMFONY_ENV needs to be set to "dev" and SYMFONY_DEBUG needs to be set to 1. This may be something that would be better handled by puppet (so it doesn't get overwritten), thus T170514: Set up XTools servers with Puppet applies. I don't know how to puppet, so putting this task up for grabs.

MusikAnimal added a subscriber: MusikAnimal.EditedAug 9 2017, 2:52 PM

According to the symfony docs, we need to set two environment variables. SYMFONY_ENV needs to be set to "dev" and SYMFONY_DEBUG needs to be set to 1

There's no way to turn on the profiler and keep it set to prod? I think it'd be preferred if we could use this instance to test the prod environment before actually deploying to production. We have enough quota to create another dev instance, though. How does that sound?

Restricted Application added a project: User-Matthewrbowker. · View Herald TranscriptAug 23 2017, 2:04 AM

Not sure about another dev instance, I don't know if that will be productive. Maybe explore https://symfony.com/doc/current/reference/configuration/web_profiler.html ?

Matthewrbowker closed this task as Declined.Jan 12 2018, 4:52 AM
Matthewrbowker moved this task from Other to Complete on the XTools board.

I am going to close this task. The environment variables can be set manually when there needs to be debugging using the profiler.