Skip to content

How to prevent xdebug notices in web pages #378

@jonnybarnes

Description

@jonnybarnes

It used to be if I had an issue in my code that caused a debug notice, for example Warning: Trying to access array offset on null or something along those lines. They would only appear if I set $development_mode = true in the project’s config.php file.

I access our projects via http://project.totara83.localhost, no debug.

Sometime in the last week or two these notices have changed from being plain text to being powered by xdebug. This has two knock-on effects for me. As xdebug is trying to provide more information it makes the pages load much slower. And they already aren’t quick when development mode is turned on in the config.php! But it also renders in a way which is far more likely to break my page layout. Look at this page for example, spread over two screenshots, its just broken:

Image Image

How can I stop the output being rendered with xdebug? It’s not because I am deliberately using the -debug image via the URL.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions