Skip to content

Use chrome-debug-adapter-core #181

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

Merged
merged 18 commits into from
Jul 17, 2018
Merged

Conversation

ivanovit
Copy link
Contributor

@ivanovit ivanovit commented Jun 1, 2018

Use https://github.com/Microsoft/vscode-chrome-debug-core and extract ns specific logic only:

  • NativeScriptPathTransformer - transform path from the device to project path.
  • NSDiscovery - returns the debug targets on the device. The default ChromeDiscovery calls localhost/json/list in order to list targets, but it's currently not supported by ns cli.
  • processRequest method is just moved. It basically do the build and get's the port to attach.
  • don't pass --no-client because we now use inspector protocol for debugging.

@ivanovit ivanovit self-assigned this Jun 1, 2018
@@ -17,7 +17,7 @@
"name": "launch in extension host",
"type": "extensionHost",
"request": "launch",
// Path to VSCode executable
// Path to VSCode executablensDebugClient
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

executablensDebugClient?

ivanovit added 18 commits July 17, 2018 10:15
Kill process before debug session.
Use the debug adapter events
Also added extension host logger
The deleted tests were focused on debug protocol. Now these scenarios should be covered by the chrome-debug-adapter-core. Currently, the new tests cover only NS related code.
Current tests for paths are generated for windows paths.
In the newer versions of CLI each command can print additional warning before the actual command output.
@ivanovit ivanovit force-pushed the iiivanov/use-chrome-debug-adapter-2 branch from f4410b4 to e8ef630 Compare July 17, 2018 07:15
@ivanovit ivanovit merged commit ca6b16f into master Jul 17, 2018
@ivanovit ivanovit deleted the iiivanov/use-chrome-debug-adapter-2 branch July 17, 2018 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants