Jump to content

Recommended Posts

Hi everyone,

is there a way to turn off debug-mode programmatically? Just temporary. 

The debug mode helps a lot and I like to use it in my development, but in a most recent case it drives me realy crazy. I just want to (and I have to) handle an easy try catch scenario, wich cannot work due to exceptionHandler of Prestashop (at least in debug mode). Each throw gets caught by the exceptionHandler but not by MY catch block.

I think the debug mode cause this behavior. I need to work with Transaction/Commit/Rollback and therefor I need my own exception handling in this case.

I don't wand to disable the debug mode by hand. May be there is a way to set the exceptionHandler to NULL, just for the special run, or may be there is another alternative. 

 

Any suggestions?

 

Some further information about my situation:

I am devolping a module for Prestashop 1.7 and currently stucking in an AdminController Class.

Edited by Axl (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...