You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SampleApps/WebView2APISample/documentation/Testing-Instructions.md
+78-26Lines changed: 78 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -674,9 +674,9 @@ Menu item `Script -> Host Objects` is demonstrated.
674
674
#### Script Debugging
675
675
676
676
##### [VSCode] Single WebView JavaScript Debugging (Old Tool: Debugger For Microsoft Edge)
677
-
Test Single WebView JavaScript Debugging with old debugging tool: Debugger For Microsoft Edge in VSCode (https://github.com/microsoft/vscode-edge-debug2)
677
+
Test Single WebView JavaScript Debugging with old debugging tool: [Debugger For Microsoft Edge](https://github.com/microsoft/vscode-edge-debug2) in VSCode
678
678
1. Open VSCode, go to extension and download the old Edge Script Debugging tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
681
681
3. In VSCode, go to Debug tab. On the top drop down, select `Debugger For Microsoft Edge: Sample app (Script $(Configuration)|$(Platform))`. (eg. `Debugger For Microsoft Edge: Sample app (Script Debug|x64)`
682
682
4. Then click the green Button (GO) to launch the sample app.
@@ -685,9 +685,9 @@ Test Single WebView JavaScript Debugging with old debugging tool: Debugger For M
685
685
7. Expect debugger to hit and pause the page.
686
686
687
687
##### [VSCode] Single WebView JavaScript Debugging (New Tool: JavaScript Debugger Nightly)
688
-
Test Single WebView JavaScript Debugging with new debugging tool: JavaScript Debugger Nightly in VSCode (https://github.com/microsoft/vscode-js-debug)
688
+
Test Single WebView JavaScript Debugging with new debugging tool: [JavaScript Debugger Nightly](https://github.com/microsoft/vscode-js-debug) in VSCode
689
689
1. Open VSCode, go to extension and download the new JavaScript Debugger Nightly tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
692
692
3. In VSCode, go to Debug tab. On the top drop down, select `JavaScript Debugger(Nightly): Sample app (Script $(Configuration)|$(Platform))`. (eg. `Debugger For Microsoft Edge: Sample app (Script Debug|x64)`
693
693
4. Then click the green Button (GO) to launch the sample app.
@@ -696,9 +696,9 @@ Test Single WebView JavaScript Debugging with new debugging tool: JavaScript Deb
696
696
7. Expect debugger to hit and pause the page.
697
697
698
698
##### [VSCode] Single WebView TypeScript Debugging (Old Tool: Debugger For Microsoft Edge)
699
-
Test Single WebView TypeScript Debugging with old debugging tool: Debugger For Microsoft Edge in VSCode (https://github.com/microsoft/vscode-edge-debug2)
699
+
Test Single WebView TypeScript Debugging with old debugging tool: [Debugger For Microsoft Edge](https://github.com/microsoft/vscode-edge-debug2) in VSCode
700
700
1. Open VSCode, go to extension and download the old Edge Script Debugging tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
703
703
3. In VSCode, go to Debug tab. On the top drop down, select `Debugger For Microsoft Edge: Sample app (Script $(Configuration)|$(Platform))`. (eg. `Debugger For Microsoft Edge: Sample app (Script Debug|x64)`
704
704
4. Then click the green Button (GO) to launch the sample app.
@@ -708,9 +708,9 @@ Test Single WebView TypeScript Debugging with old debugging tool: Debugger For M
708
708
8. Expect debugger to hit and pause the page.
709
709
710
710
##### [VSCode] Single WebView TypeScript Debugging (New Tool: JavaScript Debugger Nightly)
711
-
Test Single WebView TypeScript Debugging with new debugging tool: JavaScript Debugger Nightly in VSCode (https://github.com/microsoft/vscode-js-debug)
711
+
Test Single WebView TypeScript Debugging with new debugging tool: [JavaScript Debugger Nightly](https://github.com/microsoft/vscode-js-debug) in VSCode
712
712
1. Open VSCode, go to extension and download the new JavaScript Debugger Nightly tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
715
715
3. In VSCode, go to Debug tab. On the top drop down, select `JavaScript Debugger(Nightly): Sample app (Script $(Configuration)|$(Platform))`. (eg. `Debugger For Microsoft Edge: Sample app (Script Debug|x64)`
716
716
4. Then click the green Button (GO) to launch the sample app.
@@ -720,11 +720,11 @@ Test Single WebView TypeScript Debugging with new debugging tool: JavaScript Deb
720
720
8. Expect debugger to hit and pause the page.
721
721
722
722
##### [VSCode] Single WebView JavaScript Debugging Using Attach (Old Tool: Debugger For Microsoft Edge)
723
-
Test Single WebView Script Debugging with old debugging tool: Debugger For Microsoft Edge in VSCode (https://github.com/microsoft/vscode-edge-debug2)
723
+
Test Single WebView Script Debugging with old debugging tool: [Debugger For Microsoft Edge](https://github.com/microsoft/vscode-edge-debug2) in VSCode
724
724
1. Add a new REGKEY `additionalBrowserArgument=--remote-debugging-port=9222` under `Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\EmbeddedBrowserWebView\LoaderOverride\*`
3. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
729
729
4. In VSCode, go to Debug tab. On the top drop down, select `Debugger For Microsoft Edge: Attach to Edge`.
730
730
5. Click the green Button (GO), then go under folder `$(Platform)\$(Configuration)`(eg. `x64\Debug`) to launch `WebView2APISample.exe`
@@ -734,11 +734,11 @@ Test Single WebView Script Debugging with old debugging tool: Debugger For Micro
734
734
9. Delete the REGKEY after testing
735
735
736
736
##### [VSCode] Single WebView TypeScript Debugging Using Attach (Old Tool: Debugger For Microsoft Edge)
737
-
Test Single WebView Script Debugging with old debugging tool: Debugger For Microsoft Edge in VSCode (https://github.com/microsoft/vscode-edge-debug2)
737
+
Test Single WebView Script Debugging with old debugging tool: [Debugger For Microsoft Edge](https://github.com/microsoft/vscode-edge-debug2) in VSCode
738
738
1. Add a new REGKEY `additionalBrowserArgument=--remote-debugging-port=9222` under `Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\EmbeddedBrowserWebView\LoaderOverride\*`
3. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
743
743
4. In VSCode, go to Debug tab. On the top drop down, select `Debugger For Microsoft Edge: Attach to Edge`.
744
744
5. Click the green Button (GO), then go under folder `$(Platform)\$(Configuration)`(eg. `x64\Debug`) to launch `WebView2APISample.exe`
@@ -749,11 +749,11 @@ Test Single WebView Script Debugging with old debugging tool: Debugger For Micro
749
749
10. Delete the REGKEY after testing
750
750
751
751
##### [VSCode] Single WebView JavaScript Debugging Using Attach (New Tool: JavaScript Debugger Nightly)
752
-
Test Single WebView TypeScript Debugging with new debugging tool: JavaScript Debugger Nightly in VSCode (https://github.com/microsoft/vscode-js-debug)
752
+
Test Single WebView TypeScript Debugging with new debugging tool: [JavaScript Debugger Nightly](https://github.com/microsoft/vscode-js-debug) in VSCode
753
753
1. Add a new REGKEY `additionalBrowserArgument=--remote-debugging-port=9222` under `Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\EmbeddedBrowserWebView\LoaderOverride\*`
3. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
758
758
4. In VSCode, go to Debug tab. On the top drop down, select `JavaScript Debugger(Nightly) : Attach to Edge`.
759
759
5. Click the green Button (GO), then go under folder `$(Platform)\$(Configuration)`(eg. `x64\Debug`) to launch `WebView2APISample.exe`
@@ -763,11 +763,11 @@ Test Single WebView TypeScript Debugging with new debugging tool: JavaScript Deb
763
763
9. Delete the REGKEY after testing
764
764
765
765
##### [VSCode] Single WebView TypeScript Debugging Using Attach (New Tool: JavaScript Debugger Nightly)
766
-
Test Single WebView TypeScript Debugging with new debugging tool: JavaScript Debugger Nightly in VSCode (https://github.com/microsoft/vscode-js-debug)
766
+
Test Single WebView TypeScript Debugging with new debugging tool: [JavaScript Debugger Nightly](https://github.com/microsoft/vscode-js-debug) in VSCode
767
767
1. Add a new REGKEY `additionalBrowserArgument=--remote-debugging-port=9222` under `Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\EmbeddedBrowserWebView\LoaderOverride\*`
3. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
772
772
4. In VSCode, go to Debug tab. On the top drop down, select `JavaScript Debugger(Nightly): Attach to Edge`.
773
773
5. Click the green Button (GO), then go under folder `$(Platform)\$(Configuration)`(eg. `x64\Debug`) to launch `WebView2APISample.exe`
@@ -777,24 +777,76 @@ Test Single WebView TypeScript Debugging with new debugging tool: JavaScript Deb
777
777
9. Expect debugger to hit and pause the page.
778
778
10. Delete the REGKEY after testing
779
779
780
+
#### [VSCode] Targeted WebView JavaScript Debugging (Old Tool: Debugger For Microsoft Edge)
781
+
Test Targeted/Multiple WebView JavaScript Debugging with old debugging tool: [Debugger For Microsoft Edge](https://github.com/microsoft/vscode-edge-debug2) in VSCode
782
+
1. Open VSCode, go to Extensions and download the old Edge Script Debugging tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
785
+
3. In VSCode, go to Debug tab. On the top drop down, select `Debugger For Microsoft Edge: Sample app-Targeted (Script $(Configuration)|$(Platform))`. (eg. `Debugger For Microsoft Edge: Sample app-Targeted (Script Release|x64)`
786
+
4. Then click the green Button (GO) to launch the sample app.
787
+
5. A VM* error page may launch first, just ignore and click go. (Ignore VM* file in general and click go at any stage).
788
+
6. Go to `Scenario -> Script Debugging -> JavaScript`
789
+
7. Go to `Window -> Create New Window`, then in the new window also go to `Scenario -> Script Debugging -> JavaScript`. Then add `?debugCase`at the end of the url. Click go
790
+
8. Click on `Add a new item` button
791
+
9. Expect debugger to hit and pause the page.
792
+
793
+
#### [VSCode] Targeted WebView TypeScript Debugging (Old Tool: Debugger For Microsoft Edge)
794
+
Test Targeted/Multiple WebView TypeScript Debugging with old debugging tool: [Debugger For Microsoft Edge](https://github.com/microsoft/vscode-edge-debug2) in VSCode
795
+
1. Open VSCode, go to Extensions and download the old Edge Script Debugging tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
798
+
3. In VSCode, go to Debug tab. On the top drop down, select `Debugger For Microsoft Edge: Sample app-Targeted (Script $(Configuration)|$(Platform))`. (eg. `Debugger For Microsoft Edge: Sample app-Targeted (Script Release|x64)`
799
+
4. Then click the green Button (GO) to launch the sample app.
800
+
5. A VM* error page may launch first, just ignore and click go. (Ignore VM* file in general and click go at any stage).
801
+
6. Go to `Scenario -> Script Debugging -> TypeScript`
802
+
7. Go to `Window -> Create New Window`, then in the new window also go to `Scenario -> Script Debugging -> TypeScript`. Then add `?debugCase`at the end of the url. Click go
Test Targeted/Multiple WebView JavaScript Debugging with new debugging tool: [JavaScript Debugger Nightly](https://github.com/microsoft/vscode-js-debug) in VSCode
808
+
1. Open VSCode, go to Extensions and download the new JavaScript Debugger Nightly tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
811
+
3. In VSCode, go to Debug tab. On the top drop down, select `JavaScript Debugger(Nightly): Sample app-Targeted (Script $(Configuration)|$(Platform))`. (eg. `JavaScript Debugger(Nightly): Sample app-Targeted (Script Release|x64)`
812
+
4. Then click the green Button (GO) to launch the sample app.
813
+
5. A VM* error page may launch first, just ignore and click go. (Ignore VM* file in general and click go at any stage).
814
+
6. Go to `Scenario -> Script Debugging -> JavaScript`
815
+
7. Go to `Window -> Create New Window`, then in the new window also go to `Scenario -> Script Debugging -> JavaScript`. Then add `?debugCase`at the end of the url. Click go
Test Targeted/Multiple WebView TypeScript Debugging with new debugging tool: [JavaScript Debugger Nightly](https://github.com/microsoft/vscode-js-debug) in VSCode
821
+
1. Open VSCode, go to Extensions and download the new JavaScript Debugger Nightly tool
2. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
824
+
3. In VSCode, go to Debug tab. On the top drop down, select `JavaScript Debugger(Nightly): Sample app-Targeted (Script $(Configuration)|$(Platform))`. (eg. `JavaScript Debugger(Nightly): Sample app-Targeted (Script Release|x64)`
825
+
4. Then click the green Button (GO) to launch the sample app.
826
+
5. A VM* error page may launch first, just ignore and click go. (Ignore VM* file in general and click go at any stage).
827
+
6. Go to `Scenario -> Script Debugging -> TypeScript`
828
+
7. Go to `Window -> Create New Window`, then in the new window also go to `Scenario -> Script Debugging -> TypeScript`. Then add `?debugCase`at the end of the url. Click go
829
+
8. Click on `Get Current Page Header` button
830
+
9. Expect debugger to hit and pause the page.
831
+
780
832
##### [VS] Single WebView JavaScript Debugging (Old Tool: Debugger For Microsoft Edge)
781
-
Test Single WebView JavaScript Debugging with old debugging tool: Debugger For Microsoft Edge in VS(https://github.com/microsoft/vscode-edge-debug2)
833
+
Test Single WebView JavaScript Debugging with old debugging tool: [Debugger For Microsoft Edge in VS](https://github.com/microsoft/vscode-edge-debug2)
782
834
1. Open VS Installer, and make sure `JavaScript Diagnostics` is installed for C++ Development Kit.
3. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.js` from the same folder. Set a breakpoint on `function OnAddClick()`
787
839
4. Then launch the sample app.
788
840
5. VM* error page may launch, just ignore and click go. (Ignore VM* file in general and click go at any stage).
789
841
6. Go to `Scenario -> Script Debugging -> JavaScript`
790
842
7. Expect debugger to hit and pause the page.
791
843
792
844
##### [VS] Single WebView TypeScript Debugging (Old Tool: Debugger For Microsoft Edge)
793
-
Test Single WebView JavaScript Debugging with old debugging tool: Debugger For Microsoft Edge in VS(https://github.com/microsoft/vscode-edge-debug2)
845
+
Test Single WebView JavaScript Debugging with old debugging tool: [Debugger For Microsoft Edge in VS](https://github.com/microsoft/vscode-edge-debug2)
794
846
1. Open VS Installer, and make sure `JavaScript Diagnostics` is installed for C++ Development Kit.
3. Go to same folder where sample app `WebView2APISample.exe` lives and open file `ScenarioScripDebugIndex.ts` from the same folder. Set a breakpoint on `function onHeaderClick()`
799
851
4. Then launch the sample app.
800
852
5. VM* error page may launch, just ignore and click go. (Ignore VM* file in general and click go at any stage).
0 commit comments