@@ -424,33 +424,118 @@ <h1 style='margin-left:.5in;text-indent:-.5in'><span style='font:7.0pt "Times Ne
424424< p class =MsoNormal style ='margin-left:.25in '> V8 does not support standard
425425Windows script debugging. Instead, it implements its own TCP/IP-based debugging
426426protocol. A convenient way to debug JavaScript code running in V8 is to use the
427- open-source Eclipse IDE:</ p >
427+ Visual Studio Code IDE:</ p >
428428
429429< p class =MsoListParagraph style ='margin-left:.75in;text-indent:-.25in '> 1.< span
430430style ='font:7.0pt "Times New Roman" '> </ span > Install
431- < a href ="https://java.com/en/download/ "> Java</ a > and < a
432- href ="http://www.eclipse.org/downloads/ "> Eclipse</ a > .</ p >
431+ < a href ="https://code.visualstudio.com/ "> Visual Studio Code</ a > .</ p >
433432
434433< p class =MsoListParagraph style ='margin-left:.75in;text-indent:-.25in '> 2.< span
435- style ='font:7.0pt "Times New Roman" '> </ span > Install
436- Google Chrome Developer Tools for Java :</ p >
434+ style ='font:7.0pt "Times New Roman" '> </ span > Set
435+ up one or more ClearScript V8 debug configurations :</ p >
437436
438437< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> a.< span
439438style ='font:7.0pt "Times New Roman" '> </ span > Launch
440- Eclipse and click < b > Help</ b > → < b > Install New Software</ b > .</ p >
439+ Visual Studio Code and click < b > File</ b > → < b > Preferences </ b > →< b > Settings
440+ </ b > to open your User Settings file.</ p >
441441
442442< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> b.< span
443- style ='font:7.0pt "Times New Roman" '> </ span > Paste
444- the following URL into the < b > Work with</ b > field: < a
445- href ="http://chromedevtools.googlecode.com/svn/update/dev/ "> http://chromedevtools.googlecode.com/svn/update/dev/</ a > </ p >
443+ style ='font:7.0pt "Times New Roman" '> </ span > Add
444+ the following section to the file:</ p >
445+
446+ < p class =MsoNormal style ='margin-top:10.0pt;margin-right:36.7pt;margin-bottom:
447+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
448+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#9CDCFE '> "launch"</ span > </ b > < b > < span
449+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> :
450+ {</ span > </ b > </ p >
451+
452+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
453+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
454+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
455+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
456+ color:#9CDCFE '> "version"</ span > </ b > < b > < span style ='font-size:10.0pt;
457+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> : </ span > </ b > < b > < span
458+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#CE9178 '> "0.2.0"</ span > </ b > < b > < span
459+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> ,</ span > </ b > </ p >
460+
461+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
462+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
463+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
464+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
465+ color:#9CDCFE '> "configurations"</ span > </ b > < b > < span style ='font-size:
466+ 10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> : [</ span > </ b > </ p >
467+
468+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
469+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
470+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
471+ {</ span > </ b > </ p >
472+
473+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
474+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
475+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
476+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
477+ color:#9CDCFE '> "name"</ span > </ b > < b > < span style ='font-size:10.0pt;
478+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> : </ span > </ b > < b > < span
479+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#CE9178 '> "Attach
480+ to ClearScript V8 on port 9222"</ span > </ b > < b > < span
481+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> ,</ span > </ b > </ p >
482+
483+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
484+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
485+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
486+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
487+ color:#9CDCFE '> "type"</ span > </ b > < b > < span style ='font-size:10.0pt;
488+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> : </ span > </ b > < b > < span
489+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#CE9178 '> "node"</ span > </ b > < b > < span
490+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> ,</ span > </ b > </ p >
491+
492+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
493+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
494+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
495+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
496+ color:#9CDCFE '> "request"</ span > </ b > < b > < span style ='font-size:10.0pt;
497+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> : </ span > </ b > < b > < span
498+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#CE9178 '> "attach"</ span > </ b > < b > < span
499+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> ,</ span > </ b > </ p >
500+
501+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
502+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
503+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
504+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
505+ color:#9CDCFE '> "protocol"</ span > </ b > < b > < span style ='font-size:10.0pt;
506+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> : </ span > </ b > < b > < span
507+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#CE9178 '> "legacy"</ span > </ b > < b > < span
508+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '> ,</ span > </ b > </ p >
509+
510+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
511+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
512+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
513+ </ span > </ b > < b > < span style ='font-size:10.0pt;line-height:115%;font-family:Consolas;
514+ color:#9CDCFE '> "port"</ span > </ b > < b > < span style ='font-size:10.0pt;
515+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> : </ span > </ b > < b > < span
516+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#B5CEA8 '> 9222</ span > </ b > </ p >
517+
518+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
519+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
520+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
521+ }</ span > </ b > </ p >
522+
523+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
524+ 0in;margin-left:1.5in;margin-bottom:.0001pt;background:#1E1E1E '> < b > < span
525+ style ='font-size:10.0pt;line-height:115%;font-family:Consolas;color:#D4D4D4 '>
526+ ]</ span > </ b > </ p >
527+
528+ < p class =MsoNormal style ='margin-top:0in;margin-right:36.7pt;margin-bottom:
529+ 14.0pt;margin-left:1.5in;background:#1E1E1E '> < b > < span style ='font-size:10.0pt;
530+ line-height:115%;font-family:Consolas;color:#D4D4D4 '> }</ span > </ b > </ p >
446531
447532< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> c.< span
448- style ='font:7.0pt "Times New Roman" '> </ span > Select
449- < b > Google Chrome Developer Tools </ b > and complete the dialog .</ p >
533+ style ='font:7.0pt "Times New Roman" '> </ span > You
534+ can specify additional configurations for different TCP/IP port numbers .</ p >
450535
451536< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> d.< span
452- style ='font:7.0pt "Times New Roman" '> </ span > Restart
453- Eclipse .</ p >
537+ style ='font:7.0pt "Times New Roman" '> </ span > Click
538+ < b > File </ b > → < b > Save </ b > .</ p >
454539
455540< p class =MsoListParagraph style ='margin-left:.75in;text-indent:-.25in '> 3.< span
456541style ='font:7.0pt "Times New Roman" '> </ span > Enable
@@ -460,27 +545,28 @@ <h1 style='margin-left:.5in;text-indent:-.5in'><span style='font:7.0pt "Times Ne
460545constructor with < a
461546href ="https://microsoft.github.io/ClearScript/Reference/html/T_Microsoft_ClearScript_V8_V8ScriptEngineFlags.htm "> < b > < span
462547style ='font-size:10.0pt;line-height:115%;font-family:Consolas '> V8ScriptEngineFlags.EnableDebugging</ span > </ b > </ a >
463- and an available TCP/IP port number. The default port number is 9222.</ p >
548+ and a TCP/IP port number that matches one of your debug configurations. The
549+ default port number is 9222.</ p >
464550
465551< p class =MsoListParagraph style ='margin-left:.75in;text-indent:-.25in '> 4.< span
466552style ='font:7.0pt "Times New Roman" '> </ span > Attach
467- the Eclipse debugger to your application:</ p >
553+ the Visual Studio Code debugger to your application:</ p >
468554
469555< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> a.< span
470- style ='font:7.0pt "Times New Roman" '> </ span > In
471- Eclipse, select < b > Run </ b > → < b > Debug Configurations </ b > .</ p >
556+ style ='font:7.0pt "Times New Roman" '> </ span > Click
557+ < b > View </ b > → < b > Debug</ b > to bring up the Debug view .</ p >
472558
473559< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> b.< span
474- style ='font:7.0pt "Times New Roman" '> </ span > Right-click
475- on < b > Standalone V8 VM </ b > and select < b > New </ b > .</ p >
560+ style ='font:7.0pt "Times New Roman" '> </ span > Select
561+ the appropriate debug configuration at the top of the Debug Side Bar .</ p >
476562
477563< p class =MsoListParagraph style ='margin-left:1.25in;text-indent:-.25in '> c.< span
478- style ='font:7.0pt "Times New Roman" '> </ span > Fill
479- in the correct port number and click < b > Debug </ b > .</ p >
564+ style ='font:7.0pt "Times New Roman" '> </ span > Click
565+ < b > Debug </ b > → < b > Start Debugging </ b > .</ p >
480566
481567< p class =MsoNormal style ='margin-left:.25in '> < b > < span style ='color:#00B050 '> Note:</ span > </ b >
482- You can also attach Visual Studio to your application for simultaneous
483- debugging of script, managed, and native code.</ p >
568+ You can also attach Visual Studio to your application for simultaneous debugging
569+ of script, managed, and native code.</ p >
484570
485571< h1 style ='margin-top:14.0pt;margin-right:0in;margin-bottom:0in;margin-left:
486572.5in;margin-bottom:.0001pt;text-indent:-.5in '> VI. Acknowledgments</ h1 >
0 commit comments