-
-
Notifications
You must be signed in to change notification settings - Fork 996
doc: add info about DEBUG mode #707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Many issues pertinent to session management can be easily diagnosed with debug on. Make a statement to that effect in the README to help users self-assist to an extent. Refs: https://github.com/expressjs/session/issues/659
|
bump. Is there anything I can do to help moving this forward? thanks! |
|
This would have helped me out. |
|
I would love to see this get merged in, @wesleytodd @dougwilson any feedback here? |
README.md
Outdated
| ## Debugging | ||
|
|
||
| ```sh | ||
| $ export DEBUG=express-session |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have had this in a module before and it resulted in endless PRs for al the different methods to set environment variables on the different OSes / shells. I would prefer not to go through that again and end up with a giant list of these :) If it is possible, just state what our namespace is (express-session and point the user to the debug module on how to turn on debugging for a given namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it suffice to give a command that suggests running your project while setting the DEBUG flag aka DEBUG=express-session node index.js? I'm not 100% but I think that is an appropriate cross platform way to set the ENV var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly that syntax does not work on cmd.exe, nor on PowerShell, both the main Windows shells... :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dougwilson - my motivation is to document critical, yet missing information that aids self-diagnosing issues of using this module. Reading it multiple times, I don't see any misleading, confusing or redundant phrases, nor any incomplete info that will / may invite future bike-shedding.
I would like to retain the changes. I see you did not use the red button, so I treat your comment as a suggestion that is free to leave out, not a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And yes, you are 100% correct, I did not "request" changes, and only made a comment :) That was intentional... I am not saying there needs to be a change. I was thinking about where we have left something similar and it was http://expressjs.com/en/starter/generator.html … after countless PRs from users "fixing" the DEBUG command. Maybe just copy that structure since we haven't had a PR in a while around that. I think the current structure leads to two issues:
- users read top-to-bottom, and will try to run a command given before reading down below. Only below it says that doesn't work on Windows. On expressjs.com what is works on is disclosed before the command.
- The text says "use set in Windows" but I can tell you from experience users … have no idea that that means (this is not unique to windows; export has the same thing). It would seem to either say "use export" and "use set" or give full examples for both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting this property prior to the run (use 'set' in Windows) - the first line in my change has this, that should clarify, and work I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be we all 3 talked almost at the same time, so I am not sure about the ordering of the above conversation - who is asking, and who is answering to whom! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok , I understand your reasons. Such users (who cannot reasonably follow the document) can also copy-paste the dollar symbol, and app.js from the phrase $ DEBUG=express-session node app.js while there shell prompt and app name might have been something else?
my take would be to balance between readability and usability, while accepting reasonable changes (in the future) and provide explanation to the rest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, and that's why I suggest we just copy what is on expressjs.com page I shared, as that seems to have calmed down the PRs. I really don't want to land a PR that is known to create a cascade of more PRs to deal with.
|
Hi @jonchurch sorry I missed this PR. I labeled it up and left a comment 👍 |
dougwilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifically requesting to update the text around the command(s) to enable debugging.
@dougwilson - I have to disagree with your reasoning here. presence of a piece of text / code / doc did not invite further PR is not a good reason to infer that that is the text which is better for consumption. Potential reasons for less PRs could be, but not limited to:
This is a documentation change. IMO its merit is best measured in terms of
It is sad to see you block this PR based on a reason that is outside of these! |
|
I am measuring it against what you are saying, for example my point number 2 above:
Maybe you can help me understand why should there be an example for the syntax of |
It is based on the perceived user base: UNIX used more than Windows. |
|
Sure, but unless you have some statistics to actually back that statement up, that seems to be argued on feeling vs facts, though :) I actually perceive it to be the exact opposite, having only Windows machines myself and working in a Windows-based development company. I'm not sure if that view is any less valid. I can certainly agree if you can provide the operating system statistics of the express-session user base if that if what we want to base this on, though. |
ok, I may be wrong, and I don't have statistics. |
|
|
@dougwilson - why this was closed? You requested changes on this PR, I acted on it, requested for your review 2.5 months back - so at least you owe me an explanation and chance for me to act on it. Please re-open this PR, and either
|
|
It was closed from the other commit that did what the change I requested 3 months ago that i quoted above. I assumed that since it had been so long and that change was never made, I would just get it landed while we are trying to cut a new version of this module. |
|
Basically I never saw an objection to that request, and not sure what the hold up was, and I remember from the other conversations you would rather I not push into your PRs, so just wanted to wrap this up from what I didn't see objection to. I didn't specifically close the PR, rather GitHub auto closed the PR once a change was merged in that resolve the same contents as this... |
|
@dougwilson - you did not follow the community's Contributing Guide while over-riding this with your own commit, namely:
Please revert your change, re-open this PR, and either collaborate on this to progress or remove your red-X |
|
Hi @gireeshpunathil I think you need to perhaps take a breath from here and step back for a bit. I''m not sure what your goal here, but I think you may be overstepping quite a bit here, but maybe @expressjs/express-tc would like to chime in... |
|
Hey! As with any team growth we will have bumps! It seems like this is one, and hopefully we can come to a healthy resolution here. Here is what I think went well above:
Where I think this went wrong:
What I think we can do from here:
I am personally happy with any of the three next steps as long as we all take a step back to reflect on the direction this thread took and commit giving direct and honest feedback and attempt to make more careful decisions in the future. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@wesleytodd - thanks. I take your feedback, and promise to gain better clarity on @dougwilson - I do not consider your actions (of committing un-reviewed code and closing this PR) were in bad faith. As @wesleytodd said, let us pledge to engage in healthy conversations and work towards convergence, for the interest of the project and community! |

Many issues pertinent to session management
can be easily diagnosed with debug on.
Make a statement to that effect in the README
to help users self-assist to an extent.
Refs: https://github.com/expressjs/session/issues/659