Skip to content

Conversation

@danbev
Copy link
Contributor

@danbevdanbev commented Jun 5, 2019

Currently, when debugging a TLS connection there might be multiple debug
statements client emit secureConnect for the 'secureConnect' event
when using NODE_DEBUG='tls'. While it is possible to step through this
with a debugger that is not always the fastest/easiest to do if debugging
remote code.

This commit adds some additional information to the debug statements to
make it easier to distinguish where the debug statements are coming
from.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot

This comment has been minimized.

@danbevdanbevforce-pushed the _tls_wrap_debug_statements branch from e815b0c to b047e57CompareJune 5, 2019 10:41
Copy link
Member

@richardlaurichardlau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message contains a typo: NODE_DEBUG='tsl' -> NODE_DEBUG='tls'.

Currently, when debugging a TLS connection there might be multiple debug statements 'client emit secureConnect' for the 'secureConnect` event when using NODE_DEBUG='tls'. While it is possible to step through this with a debugger that is not always the fastest/easiest to do if debugging remote code. This commit adds some additional information to the debug statements to make it easier to distinguish where the debug statements are coming from.
@danbev
Copy link
ContributorAuthor

Commit message contains a typo: NODE_DEBUG='tsl' -> NODE_DEBUG='tls'.

Thanks, I've updated the commit message now.

@danbevdanbevforce-pushed the _tls_wrap_debug_statements branch from b047e57 to 1a6efb6CompareJune 5, 2019 13:44
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@danbev
Copy link
ContributorAuthor

Landed in 5bad514.

@danbevdanbev closed this Jun 10, 2019
@danbevdanbev deleted the _tls_wrap_debug_statements branch June 10, 2019 03:37
danbev added a commit that referenced this pull request Jun 10, 2019
Currently, when debugging a TLS connection there might be multiple debug statements 'client emit secureConnect' for the 'secureConnect` event when using NODE_DEBUG='tls'. While it is possible to step through this with a debugger that is not always the fastest/easiest to do if debugging remote code. This commit adds some additional information to the debug statements to make it easier to distinguish where the debug statements are coming from. PR-URL: #28067 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Rich Trott <[email protected]>
BridgeAR pushed a commit that referenced this pull request Jun 17, 2019
Currently, when debugging a TLS connection there might be multiple debug statements 'client emit secureConnect' for the 'secureConnect` event when using NODE_DEBUG='tls'. While it is possible to step through this with a debugger that is not always the fastest/easiest to do if debugging remote code. This commit adds some additional information to the debug statements to make it easier to distinguish where the debug statements are coming from. PR-URL: #28067 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@BridgeARBridgeAR mentioned this pull request Jun 17, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@danbev@nodejs-github-bot@sam-github@Trott@cjihrig@richardlau@trivikr@ZYSzys