adrian Posted July 24, 2023 Author Share Posted July 24, 2023 Thanks for the idea @bernhard - I've added it in the latest version - you'll find a new "Redirect Info" section in the Request Info panel. It is enabled by default on new installs, but will need to be manually enabled on existing ones. 3 Link to comment Share on other sites More sharing options...
bernhard Posted July 24, 2023 Share Posted July 24, 2023 Great @adrian thank you! Would it be hard to place that Info on top of the request panel and make it uncollapsed by default? It's quite hard to find right now and I guess in many cases that information is the most important information you want to find. And it does not do any harm on regular requests as it will only be shown in redirect bars ? Link to comment Share on other sites More sharing options...
adrian Posted July 25, 2023 Author Share Posted July 25, 2023 7 hours ago, bernhard said: Great @adrian thank you! Would it be hard to place that Info on top of the request panel and make it uncollapsed by default? It's quite hard to find right now and I guess in many cases that information is the most important information you want to find. And it does not do any harm on regular requests as it will only be shown in redirect bars ? Sure - compromise - it's still below the Page Info, but it's right below it and open by default. 1 Link to comment Share on other sites More sharing options...
bernhard Posted July 25, 2023 Share Posted July 25, 2023 Thanks ? Link to comment Share on other sites More sharing options...
bernhard Posted February 5, 2024 Share Posted February 5, 2024 Hey @adrian could tracy show the execution time of the page even when tracy is toggled off? I think it would be nice to see this to get a feeling of how fast the website is for public users. Tracy and all the panels sometimes make sites a little slower, so I sometimes toggle it off completely, but then I don't see the loading time any more. Would that make sense? What do you think? 1 Link to comment Share on other sites More sharing options...
adrian Posted February 11, 2024 Author Share Posted February 11, 2024 @bernhard - how about as a title attribute like this when you hover the Tracy icon? This way it's available if you want it, but it doesn't affect anyone otherwise. 2 Link to comment Share on other sites More sharing options...
bernhard Posted February 11, 2024 Share Posted February 11, 2024 7 hours ago, adrian said: @bernhard - how about as a title attribute like this when you hover the Tracy icon? This way it's available if you want it, but it doesn't affect anyone otherwise. Yeah I think that would be a great solution! It would be there if needed and does not take up space if not. If you added the "uk-tooltip" attribute it would instantly show as a https://getuikit.com/docs/tooltip which appears instantly and looks nicer. This would only work if someone has uikit on the frontend, but if not, it does not hurt again, as it will fallback to the regular "title" attribute of the browser. <span title="Enable Tracy | 160.1ms" uk-tooltip>icon</span> 1 Link to comment Share on other sites More sharing options...
bernhard Posted December 22, 2024 Share Posted December 22, 2024 Hey @adrian thx for the great redirect info. I'm using it very often! Would it be hard to link the "file" cell to open up the file in the configured IDE just like all the other links work? Obviously not tremendously important but would be a lot nicer than finding the file and line in the IDE manually 🙂 Thx a lot! 1 Link to comment Share on other sites More sharing options...
adrian Posted December 23, 2024 Author Share Posted December 23, 2024 @bernhard - available in the latest version. 1 1 Link to comment Share on other sites More sharing options...
bernhard Posted December 23, 2024 Share Posted December 23, 2024 Awesome! Thank you for all your great work!! 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 27 Share Posted June 27 Hey @adrian I'm developing a project where users are identified by their mail addresses and their usernames are random strings: Would it be possible to set a custom user property to display in the user switcher panel? A simple textfield would be enough for my use case where I can enter "email" and it would display the email instead of the username. Or maybe show the mail address by default in brackets? Quote ddevadmin (foo@bar.com) Link to comment Share on other sites More sharing options...
adrian Posted June 27 Author Share Posted June 27 Hey @bernhard - I didn't come to the forum to see your updated suggested about the email in brackets and already added the custom label field option, so hope that's ok. 1 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 27 Share Posted June 27 Sure, that's also great, thank you 🙂 Already tried it and it helps a lot, thx! 🙂 1 Link to comment Share on other sites More sharing options...
adrian Posted June 27 Author Share Posted June 27 Hey @bernhard - I revised the last commit so now you can use tags. The default is now set to: {name} ({email}) Hope that helps you and others. 3 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 29 Share Posted June 29 @adrian sorry for causing work 🙈 Seems like the "find user" filter input does not filter mail addresses even though I set the config of the panel to "{name} ({email})". Maybe you can address this at some point as well? Thx a lot! 2 Link to comment Share on other sites More sharing options...
adrian Posted June 29 Author Share Posted June 29 Hey @bernhard - good catch. New version supports searching whatever is in the label. 2 1 Link to comment Share on other sites More sharing options...
Pete Posted August 13 Share Posted August 13 Hi Adrian, My search-foo is weak today so this may have been discussed to death but I couldn't find anything specific. Is there a reason why TracyDebugger module isn't in the ProcessWire namespace? The reason I ask is it compiles otherwise when file compiler is on - which for me is most of the time as there are modules I use that are not in a namespace (I am now religiously disabling template compilation though - just a few years late to the party on that one 😄). On an AWS setup where the site files are on an EFS mount Tracy is the one module that can take ages as it's a little slower to do this on a network drive. I've even had the updater module in ProcessWire fail to update Tracy and often just do it via CLI and it seems to be entirely down to PW having to compile the module. I realise AWS setups like this may still be a bit niche in this day and age but now, having mastered AWS pretty thoroughly (auto-scaling groups - my last bit I really needed to learn - are amazing!), I wouldn't go back. Feel free to point me to where this has already been discussed - as I say my searches returned bits and pieces around namespaces but not this exact thing. (Also I've been away from these forums for too long so if anyone else likes to geek out about AWS setups maybe we can have a chat somewhere on the forums or maybe there's already one I'm missing. I miss 2012-14(ish) where I was on here every day). Link to comment Share on other sites More sharing options...
adrian Posted August 13 Author Share Posted August 13 Hi @Pete - sorry, I haven't used EFS - I have a regular EBS setup on AWS so I don't really know why the file compiler is causing you issues - for me it's been seamless for years so I have never seen the need to add the PW namespace to any of my modules. I do it for all my template files, but figured why break modules for any old PW 2.x installations if I don't need to. For me it compiles it once when the module is updated and then it's just as quick as it would be if it was namespaced because the compiled version is loaded all the time. Is it because your EFS setup is used by multiple EC2 instances and that somehow why it needs to be re-compiled every time? You mention "it compiles otherwise when file compiler is on - which for me is most of the time as there are modules I use that are not in a namespace" - does that mean that if one module isn't namespaced it's making all recompile on every page load? Link to comment Share on other sites More sharing options...
Pete Posted August 13 Share Posted August 13 It's only after a TracyDebugger upgrade it struggles, so it downloads the zip via the ProcessWire Upgrade module but because there are a lot of files in TracyDebugger the FileCompiler takes a while to scan and times out or runs out of memory (I forget which but timeout seems more likely). Only happens during upgrade but times out because of the network chatter (for want of a better phrase) with the EFS mount. And then it doesn't complete the upgrade basically so you have to do it via CLI. The reason for EFS in a clustered setup is that nodes (servers) in an auto-scaling group come and go as you refresh things or as the instances increase/decrease automatically in number due to traffic demands, so having the sites on local EBS on one node doesn't work at all as they'd need to maintain their own copies of all files in sync for the sites on that cluster. So in this setup you put the sites on EFS (essentially a very fast network drive) so all nodes in the cluster have apache run sites from there and it's definitely more than fast enough for normal operations, just slow for things like FileCompiler when there are a lot of files to check when compiling a module. It checks them all whether they individually have a namespace or not as it has to decide which ones need compiling so TracyDebugger with this many files makes it try and do "too much" (a relative term, I know) in this setup. I like the idea with the backwards compatibility, but is there not stuff in newer versions of Tracy that isn't compatible with PW 2.x now anyway? I don't remember if PW 2.x even supported PHP 8 - probably not much beyond that anyway - so there may be some benefit to a version that only works with 3.x at some point. Just that usually adding the namespace to modules is relatively painless (though I've had some occasions where it was a little less straightforward I'll admit 😄) and then it's one less bit of overhead when keeping modules up to date. A selfish request to be sure, but maybe I'm not the only one? 😅 1 Link to comment Share on other sites More sharing options...
adrian Posted August 13 Author Share Posted August 13 Hey @Pete - I maintain four different Tracy core versions which are all included and used based on the version of PHP available. I have also made a real effort to ensure PHP 7 compatibility (maybe even 5 - not sure). A Tracy upgrade is basically instantaneous on all my servers/installs so I've never thought of the compiling process as an issue. Adding a namespace is probably more of a big deal with so many panels and reliance on the Tracy core itself - maybe just a matter of lots of backspaces to start loading things from the global namespace. The one other module I namespaced was AdminActions and it was a real challenge but that was mostly due to trying to support installed custom user actions whether they were namespaced or not. Still, it put me off namespacing others. I'll try to find some time to see what's involved sometime soon. 2 Link to comment Share on other sites More sharing options...
adrian Posted August 14 Author Share Posted August 14 Hey @Pete - if you want to try it out: https://github.com/adrianbj/TracyDebugger/tree/namespaced I am not ready to commit to the master branch yet because there were a lot of changes required and I have a feeling I still might have missed some things - most likely core PHP things like DirectoryIterator etc that need to be prepended by \ to get them called from the global namespace. 4 Link to comment Share on other sites More sharing options...
adrian Posted August 15 Author Share Posted August 15 @Pete - I've just pushed a lot of critical fixes, so just in case you have already started testing, please grab the latest version. I knew there was a good reason I hadn't looked into doing this before :) 2 Link to comment Share on other sites More sharing options...
Pete Posted August 16 Share Posted August 16 Yes I was going to say there would be a lot of backspaces for core classes but you seem to have thought of that. I'll check this out as soon as I can - thanks! Any maintaining that many different versions - well done! I think that would break my brain 😄 Link to comment Share on other sites More sharing options...
Jonathan Lahijani Posted September 3 Share Posted September 3 (edited) Is it possible to put TracyDebugger in Development mode regardless of whatever settings are in the "Access permission" section? Like is there a $config setting that can force Development mode in which overrides whatever is in Access permission? I have a special case where I want it in Development mode that none of the Access permissions will be quite flexible enough for. To be specific, I want it enabled in PW CLI mode (but on my dev server), which means I can't use user/role-based or IP-based detection. I also don't want to use "Force isLocal" because that will enable it for both CLI and GUI mode. I don't want it for GUI mode in that particular case since my dev server is technically publicly accessible and could lead to TracyDebugger being used as a hacking vector. Edited September 3 by Jonathan Lahijani meant to say Development mode, not Production mode Link to comment Share on other sites More sharing options...
adrian Posted September 3 Author Share Posted September 3 @Jonathan Lahijani - not sure if this is what you are looking for, but all Tracy's settings can be overridden in config.php like: $config->tracy = [ 'outputMode' => 'development', 'guestForceDevelopmentLocal' => true, 'forceIsLocal' => true, ]; Not sure if those are the exact options you want, but hopefully that approach works for you. 2 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