Ivan Gretsky Posted September 30, 2021 Share Posted September 30, 2021 Good day! I think about moving some development away from localhost to a remote dev machine. It is password protected, so noone will see the Tracy Debugger bar. And I want to show it for guest users too, like I can do on localhost. Is there a way to do it? 1 Link to comment Share on other sites More sharing options...
adrian Posted October 5, 2021 Share Posted October 5, 2021 Hi @Ivan Gretsky - I've had a couple of other requests for this so it's definitely on my list. I will try to get to it shortly. 1 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted October 25, 2021 Author Share Posted October 25, 2021 Maybe there could be an easy solution? Like adding a list of ips and/or domain names that should be treated like a localhost to the config? Link to comment Share on other sites More sharing options...
adrian Posted November 13, 2021 Share Posted November 13, 2021 Hi @Ivan Gretsky - I am sorry about the delay on this and it's actually pretty stupid really because @teppo already came up with what seems to be a great solution: https://github.com/adrianbj/TracyDebugger/issues/56 I have implemented this in the latest version, so all you need to do is add this to your config.php file: $config->tracy = [ 'guestForceDevelopmentLocal' => true, 'forceIsLocal' => true, ]; Keep in mind that the "guestForceDevelopmentLocal" isn't necessary if you already have that checked in the module settings. @Robin S - does this approach also work for your needs (that you PM'd me about ages ago)? Obviously we need to be really cautious with this new option to make sure it isn't used on a live site that is accessible to the world! 3 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 13, 2021 Author Share Posted November 13, 2021 Thanks, @adrian and @teppo! 8 hours ago, adrian said: I have implemented this in the latest version, so all you need to do is add this to your config.php file: This is great way to handle it, as we can override this setting in config-dev.php. By the way, where can we find all the config options available for Tracy? 8 hours ago, adrian said: Obviously we need to be really cautious with this new option to make sure it isn't used on a live site that is accessible to the world! It could be beneficial to have some kind of color indication for this in Tracy bar, so we won't forget to change the setting if we're on prod. Something like a color flag. What do you think? Link to comment Share on other sites More sharing options...
adrian Posted November 13, 2021 Share Posted November 13, 2021 5 hours ago, Ivan Gretsky said: By the way, where can we find all the config options available for Tracy? All of Tracy's config settings are available to be modified in the config.php file. Just right click on a setting's input field and "Inspect". Remove the "Inputfield_" prefix from the id and use that. 5 hours ago, Ivan Gretsky said: It could be beneficial to have some kind of color indication for this in Tracy bar Yeah, probably a good idea. It's kinda ugly, but what about: The bar would be colored like this whenever that forceIsLocal option is set to true. Alternately, we could go with a border, eg: Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 13, 2021 Author Share Posted November 13, 2021 Any would do for me) But maybe a border from one side could be enough? Top or left. Another option would be a warning sign icon to the left of the TRACY label with a popup, describing why it is here (kind of like Server Type Indicator). 1 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 13, 2021 Author Share Posted November 13, 2021 39 minutes ago, adrian said: All of Tracy's config settings are available to be modified in the config.php file. Just right click on a setting's input field and "Inspect". Remove the "Inputfield_" prefix from the id and use that. That is just awesome! Why did I never seen it in the docs? Is it even there? Link to comment Share on other sites More sharing options...
adrian Posted November 14, 2021 Share Posted November 14, 2021 8 hours ago, Ivan Gretsky said: Another option would be a warning sign icon to the left of the TRACY label with a popup, describing why it is here I like it :) - that's what I've done in the latest version: 8 hours ago, Ivan Gretsky said: That is just awesome! Why did I never seen it in the docs? Is it even there? Probably not - sorry about that :) 2 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 14, 2021 Author Share Posted November 14, 2021 8 hours ago, adrian said: Probably not - sorry about that ? A great thing to have on a to-do list)) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now