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

Add React Native direct debugger #1088

Merged
merged 25 commits into from
Sep 26, 2019

Conversation

RedMickey
Copy link
Contributor

@RedMickey RedMickey commented Aug 28, 2019

Add React Native direct debugger to support debugging of Android Hermes apps. #1073

Telemetry description

Node Debugger telemetry and Direct Debugger telemetry comparison

Node Debugger telemetry events Direct Debugger telemetry events
- useProgramProperty - removed
- useCwdProperty - removed
- launch
Consists of 5 steps: initialStep, startPackager, prewarmBundleCache, mobilePlatform.runApp, mobilePlatform.enableJSDebuggingMode. Each step is independent telemetry object that measures its completion time (in form eventname.time) and may contain additional properties such as errors etc.
- launch
Added the special new launch event to separate the launch of Direct debugger from default app launch. All default telemetry steps are similar to Node Debugger case and all parameters remained the same.
added property isDirect
drawing
- launch.initialStep
drawing
- launch.initialStep
added property isDirect
drawing
- launch.checkPlatformCompatibility
drawing
- launch.checkPlatformCompatibility
added property isDirect
drawing
- launch.startPackager
drawing
- launch.startPackager
added property isDirect
drawing
- launch.prewarmBundleCache
drawing
- launch.prewarmBundleCache
added property isDirect
drawing
- AndroidPlatform.runApp
drawing
- AndroidPlatform.runApp
added property isDirect
drawing
- launch.mobilePlatform.runApp
drawing
- launch.mobilePlatform.runApp
added property isDirect
drawing
- mobilePlatform.enableJSDebuggingMode
the step for NodeDebugAdapter in launch app sequence
drawing
- mobilePlatform.enableDirectDebuggingMode
added the step mobilePlatform.enableDirectDebuggingMode in launch app sequence instead of mobilePlatform.enableJSDebuggingMode
drawing
- attach
drawing
- attach
added property isDirect
drawing

doc/debugging.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
doc/debugging.md Outdated Show resolved Hide resolved
doc/debugging.md Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
src/debugger/direct/reactNativeDirectDebugEntryPoint.ts Outdated Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
doc/debugging.md Outdated Show resolved Hide resolved
src/debugger/direct/reactNativeDirectDebugEntryPoint.ts Outdated Show resolved Hide resolved
src/extension/debugConfigurationProvider.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@SounD120 SounD120 left a comment

Choose a reason for hiding this comment

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

Please ensure all newly added telemetry events are sent correctly.

src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Show resolved Hide resolved
src/common/telemetry.ts Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
@SounD120 SounD120 marked this pull request as ready for review September 2, 2019 13:24
src/common/telemetryHelper.ts Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
Copy link
Member

@dhanvikapila dhanvikapila left a comment

Choose a reason for hiding this comment

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

Please change any string with Hermes that is visible for users to include "experimental" in it.

doc/debugging.md Outdated Show resolved Hide resolved
doc/debugging.md Outdated Show resolved Hide resolved
doc/debugging.md Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/common/telemetryHelper.ts Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Show resolved Hide resolved
package.json Show resolved Hide resolved
package.nls.json Outdated Show resolved Hide resolved
src/common/extensionHelper.ts Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
src/debugger/direct/directSessionWrapper.ts Outdated Show resolved Hide resolved
src/extension/launchArgs.ts Outdated Show resolved Hide resolved
src/debugger/direct/directDebugAdapter.ts Outdated Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
package.nls.json Outdated Show resolved Hide resolved
@RedMickey RedMickey merged commit 549baae into microsoft:master Sep 26, 2019
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.

4 participants