doc: update output examples in debugger.md#10944
doc: update output examples in debugger.md#10944vsemozhetbyt wants to merge 1 commit intonodejs:masterfrom vsemozhetbyt:debugger.md
Conversation
|
/cc @nodejs/documentation |
|
@jasnell Could this be landed? |
|
I'd like a bit more sign off. @nodejs/documentation |
joshgav
left a comment
There was a problem hiding this comment.
Two fixes recommended in comments:
var x = 5rather thanglobal.x = 5- Don't use a specific UUID in the chrome-devtools URL.
Thanks for the contribution!
doc/api/debugger.md
Outdated
There was a problem hiding this comment.
Unfotunately the UUID changes with each Node instance, so we shouldn't use a specific one here. Perhaps a placeholder like <uuid> would be sufficient?
doc/api/debugger.md
Outdated
There was a problem hiding this comment.
var x = 5 and the same in the output examples would be more representative of usage IMO.
doc/api/debugger.md
Outdated
doc/api/debugger.md
Outdated
doc/api/debugger.md
Outdated
|
Ah I see, the example is stopping within a callback so that variable isn't there. I guess It would be great if you have a better idea than the "<uuid>" string 😄 , but there's not really another option at the moment I don't think? LGTM |
|
@joshgav Sorry, I have not) Does anybody have? |
|
Maybe use an example uuid string and then add a note/comment explaining that string is just an example, it would be generated on the fly? |
|
@joyeecheung Like this? (The UUID in the end of the URL is generated on the fly, it will vary.) |
|
@vsemozhetbyt Probably
|
|
@joyeecheung Done. |
|
@jasnell @joshgav @joyeecheung Could we proceed? |
|
Still LGTM. @joyeecheung PTAL |
PR-URL: #10944 Reviewed-By: Josh Gavant <joshgavant@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
|
added a period to end of a sentence and landed in ca8c30a Thanks @vsemozhetbyt! |
|
This is not landing clearly in |
PR-URL: nodejs#10944 Reviewed-By: Josh Gavant <joshgavant@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
|
Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if no let me know or add the |
Checklist
Affected core subsystem(s)
doc, debugger
x = 5;by explicitglobal.x = 5;to stress the intent to create a global variable (needed for access from debug REPL).>) in output according to real output.Some updates are done due to previous changes in
test/fixtures/break-in-module/main.jsandtest/fixtures/break-in-module/mod.jsfiles.