[NFBCS] Using the Chrome Console

Lewis Wood lewislwood at gmail.com
Tue Apr 26 13:55:13 UTC 2022


I personally prefer vsCode for my javascript debugging. Although vsCode
works better if the javascript is an external .js file.

To debug from vsCode do the following:
1) Open html file in browser first.  And Copy the address from the bar. Then
close it.
2) in vsCode press ctrl + shift + P, to debug a link.
3. Paste the address from the step 1.
4) now you are debugging until you shut down the browser.

Set break points, and inspect variables as usual.
F10 and f11 stepover and step into. See debug windows.

Ctrl + shift + "y" is java console hot key. Press again to return to editor.
IN the javaconsole you will find shift + tab puts you in a console tree.
This console tree is the output from your javascript.  You can clear it,
copy, etc using application key menu..

Set breakpoints and everything.  Also tab to variables while at a
breakpoi9nt. All the variables, local and blobal are available.  You can
even edit them.
Simply type in a variable or formala and the java console will output it.
Then do the shift tab for the tree.

I hope this helps..

Lewis Wood
lewislwood at gmail.com

-----Original Message-----
From: NFBCS <nfbcs-bounces at nfbnet.org> On Behalf Of dan TeVelde via NFBCS
Sent: Monday, April 25, 2022 2:28 PM
To: 'NFB in Computer Science Mailing List' <nfbcs at nfbnet.org>
Cc: dan.tevelde at comcast.net
Subject: [NFBCS] Using the Chrome Console

I am trying to debug JavaScript but the keyboard commands f8 to run, f10 to
step over, and f11 to step into aren't working. I think the step over
command is supposed to position the cursor on a specific line to begin code
execution from that point. I am using NVDA and must continue to switch from
forms mode to browse mode to run commands and read results. I did a Google
search and found a list of possible keyboard shortcut keys, but they weren't
helpful.

 

Thanks,

Dan

_______________________________________________
NFBCS mailing list
NFBCS at nfbnet.org
http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for NFBCS:
http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/lewislwood%40gmail.com




More information about the NFBCS mailing list