Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js-debug smoke test #89393

Closed
2 tasks done
connor4312 opened this issue Jan 27, 2020 · 4 comments
Closed
2 tasks done

js-debug smoke test #89393

connor4312 opened this issue Jan 27, 2020 · 4 comments

Comments

@connor4312
Copy link
Member

connor4312 commented Jan 27, 2020

Another iteration, another js-debug sanity check! If you were on last month's #85984 and the tool assigns you, feel free to swap with someone else for fresh 👀 Please file issues on the js-debug repo: click to file

Complexity: 4


Prerequisite

  • Install the latest js-debug-nightly extension from the marketplace.
  • Be on Insiders, of course :)

Node.js testing

  • Pick any Node.js project you have configured for debugging with VS Code
  • Prefix its launch config type with pwa-
  • Verify that you can launch the program and debug as usual:
    • The program launches
    • You can set breakpoints before and while the program is running, and they get hit
    • You can step into, out of functions.
    • Stack traces etc. display correctly.
    • Restarting the program works
    • Stopping the program works
  • Verify that you can attach to this Node.js process running in debug mode, and debug as usual.

Chrome testing

  • Pick any browser/Chrome project you have configured for debugging with VS Code
  • Prefix its launch config type with pwa-
  • Verify that you can launch the project and debug as usual:
    • The browser launches and opens your project
    • You can set breakpoints before and while the program is running, and they get hit
    • You can step into, out of functions.
    • Stack traces etc. display correctly.
    • Restarting the program should refresh the page
    • Stopping the program should close the browser
  • Verify that you can attach to a running browser with your project open.
    • Note that you need to launch Chrome with special flags for this, on my machine: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug

Extension Host testing

  • Pick any extension you have configured for debugging with VS Code
  • Prefix its launch config type with pwa-
  • Verify that you can launch the extension and debug as usual:
    • The extension host launches with your extension
    • You can set breakpoints before and while the program is running, and they get hit
    • You can step into, out of functions.
    • Stack traces etc. display correctly.
    • Restarting the extension reloads the extension host window
    • Stopping the program closes the extension host window
@sandy081
Copy link
Member

@connor4312 You need to assign to the milestone to include it in testing. I assume you want this to be tested and hence assigning to current milestone.

@sandy081 sandy081 added this to the January 2020 milestone Jan 28, 2020
@alexr00
Copy link
Member

alexr00 commented Jan 28, 2020

I couldn't test chrome launch configurations because of https://github.com/microsoft/vscode/issues/89439

@chrmarti
Copy link
Collaborator

Testing extension host debugging was limited by microsoft/vscode-js-debug#273.

@chrmarti chrmarti removed their assignment Jan 28, 2020
@connor4312
Copy link
Member Author

Thank you for the issues! 😄

@connor4312 connor4312 mentioned this issue Feb 24, 2020
3 tasks
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants