Disable debug mode does not work #45
Merged
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
toggling debug mode does not work.
Method
enableTracyuses debugMode in static parameters to choose production/debug mode.https://github.com/nette/bootstrap/blob/master/src/Bootstrap/Configurator.php#L194
But in current implemetation
setDebugis called after enableTracy call. So the parameter is not usedhttps://github.com/nette/bootstrap/blob/4876d25955b4164d714bc17c265f664f6594685b/src/Bootstrap/Configurator.php#L94
And method
detectDebugModeis used for first set of testshttps://github.com/nette/tracy/blob/59062116fd36efd9579061af1dcbc0472cea1d63/src/Tracy/Debugger/Debugger.php#L599
But in all of the following calls and because of this connector
codeception/src/Connector/NetteConnector.php
Line 42 in 5d2be1b
Remote address is set to
127.0.0.1, so thedetectDebugModemethod automatically enables debug mode for tracy in all of the following test cases