GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixing too large images and adding "Debugging extension" instructions · caijunjun/vscode-react-native@5b6b6f7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • CONTRIBUTING.md
  • images
    • choose-debugger.png
    • command-palette.png
    • debug-targets.png
    • intellisense-prompt.png
    • intellisense.png
    • launch-config.png
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/CONTRIBUTING.md‎

Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+9-2Lines changed: 9 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@ To avoid a conflict, delete the installed extension at `~/.vscode/extensions/vsm
1818
* Run `gulp build`
1919

2020

21-
## Debugging
22-
In VS Code, run the `launch as server` launch config - it will start the adapter as a server listening on port 4712. In your test app launch.json, include this flag at the top level: `"debugServer": "4712"`. Then you'll be able to debug the adapter in the first instance of VS Code, in its original TypeScript, using sourcemaps.
21+
##Debugging
22+
There are currently 3 components to our extension: The extension running in the vscode process, the debug adapter, and some code wrapping the user react-native code which is launched by the debug adapter. These are all debugged in different ways:
23+
24+
* To debug the extension process itself, in VS Code run the `Launch Extension` debug target which will spawn a new instance of VS code with the extension installed. You can set breakpoints in the typescript and debug things such as extension activation and the command palette.
25+
26+
* To debug the code running in the same process as the react-native code, open up an instance of VS code running the extension on a react-native project. From this instance, open up the typescript file in the extension codebase that you wish to debug and add breakpoints. Now when you launch the react-native project, you should hit breakpoints in the extension code wrapper.
27+
28+
* Currently the codebase is not configured for easy debugging of the debug adapter, and we plan significant changes in the near future. However, if you ensure that `out/debugger/nodeDebugLocation.json` contains a `nodeDebugPath` entry which points to the location of the node debug adapter extension (Run the extension normally and open up a react-native project to generate this file), then you can run `node --harmony --server=4712 out/debugger/nodeDebugWrapper.js` to start a standalone instance of the debug adapter (optionally with a debugger attached to it) and then inside a react-native project add `"debugServer": 4712` to the top-level launch.json to get it to use the standalone instance.
29+
2330

2431
## Testing
2532
There is a set of mocha tests for the debug adapter which can be run with `npm test`, and a set of mocha tests for the other functionality run as part of the `test` launch config. Also run `gulp tslint` to check your code against our tslint rules.
Collapse file

‎images/choose-debugger.png‎

Copy file name to clipboard
-10.2 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎images/command-palette.png‎

Copy file name to clipboard
-33.8 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎images/debug-targets.png‎

Copy file name to clipboard
-17.8 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎images/intellisense-prompt.png‎

Copy file name to clipboard
-4.25 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎images/intellisense.png‎

Copy file name to clipboard
-1.19 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎images/launch-config.png‎

Copy file name to clipboard
-100 KB
  • Display the source diff
  • Display the rich diff
Loading

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.