JsDiagBreakpoints.js 773 B

123456789101112131415161718192021
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function foo() {
  6. var x = "bp A";
  7. x; /**bp(A):evaluate('x');enableBp('B');deleteBp('D');**/
  8. x = "Hit loc B";
  9. x; /**loc(B):evaluate('x');disableBp('C');**/
  10. x = "bp C, BUG";
  11. x; /**bp(C):evaluate('x');**/
  12. x = "bp D, BUG";
  13. x; /**bp(D):evaluate('x');**/
  14. x = "bp D";
  15. x; /**bp:evaluate('x');**/
  16. }
  17. WScript.Attach(foo);
  18. WScript.Detach(foo);
  19. WScript.Attach(foo);
  20. WScript.Echo("pass");