Prestashop: Configurable debug mode

Created on 16 Oct 2018  路  12Comments  路  Source: PrestaShop/PrestaShop

Is your feature request related to a problem? Please describe.
Its a common need to debug issue in production shop. Since a lot of merchant dont have multiple environments (and if they do, sometimes you still have to debug on live shop), developers providing support (and not only) have to be really careful when debugging problems on live shop.

It would be a nice feature to be able to enable Debug mode for different IP addresses.

Describe the solution you'd like
Be able to configure IP addresses on which debug mode would be enabled from Back Office.

Describe alternatives you've considered
Hardcode IP check directly in defines.inc.php file to define _PS_MODE_DEV_.

Additional context
Its something similar as configuring Maintenance IP in Back Office.

Advanced parameters Improvement PM 鉁旓笍 Performance To Do waiting for UX

Most helpful comment

Brilliant @sarjon ! So simple!

All 12 comments

Makes sense 馃憤

Brilliant @sarjon ! So simple!

@matks i would be willing to give it a shot, wdyt? however, i'd like to see some mockup how it should look like. :)

@colinegin wdyt?

Hello @sarjon , sorry I missed your comment !
Yes, it could be a great idea for developers !
I guess we could have the same feature as for maintenance mode, but let's wait for @TristanLDD 's mockups :)

Any news about this FR?

hi @PrestaShark,

as you can see, it's waiting for UI mockups. :)

@TristanLDD any news on this?

Upvote !

It is possible to use the same operation that uses the site under maintenance but on the contrary, you could integrate it very quickly. It would be a great thing!

Thank you

I have found this:
https://www.matthieu-jalbert.fr/activer-le-mode-debug-par-adresse-ip-sur-prestashop/

but make a flag in prestashop backoffice will be a lot better

I've posted a pr to support ip V6 et ip subnet masks in maintenance ip. This feathure should also support it : https://github.com/PrestaShop/PrestaShop/pull/16876

Was this page helpful?
0 / 5 - 0 ratings