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

Test: debugger readMemory and writeMemory #141347

Closed
2 tasks done
connor4312 opened this issue Jan 25, 2022 · 0 comments
Closed
2 tasks done

Test: debugger readMemory and writeMemory #141347

connor4312 opened this issue Jan 25, 2022 · 0 comments

Comments

@connor4312
Copy link
Member

connor4312 commented Jan 25, 2022

Refs: #126268

Complexity: 4

Create Issue


This iteration, we (at long last!) added support for reading and writing binary data into VS Code and the Javascript Debugger (microsoft/vscode-js-debug#1167). To test:

  1. Start without the hex editor installed in VS Code

  2. Have a Node.js program that has binary data, for example:

    const crypto = require('crypto');
    const bytes = crypto.randomBytes(1024);
    debugger;
    console.log(bytes);
  3. Run the program. In the Variables view, types that support binary data should have an inline binary icon on hover.

  4. Click on the icon. You should be prompted to install the hex editor. Do so, and after you do a view showing the binary data should be automatically opened to the side.

  5. Editing should work and be reflected in the program (e.g. in the REPL)

  6. The hex editor should automatically close when the debug session ends.

Known issues:

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

3 participants