Switch use of xplat/hermes-inspector to xplat/js/react-native-github/ReactCommon/hermes/inspector
Summary: Changelog: [Internal] Reviewed By: dulinriley Differential Revision: D18364013 fbshipit-source-id: 1c077cf4f886ea620a62d8fe83dfd725850bcd31
This commit is contained in:
Родитель
abb4590285
Коммит
8e750d75ee
|
@ -2,6 +2,6 @@ load("@fbsource//xplat/hermes/defs:hermes.bzl", "hermes_is_debugger_enabled")
|
|||
|
||||
def hermes_inspector_dep_list():
|
||||
return [
|
||||
"fbsource//xplat/hermes-inspector:chrome",
|
||||
"fbsource//xplat/hermes-inspector:inspectorlib",
|
||||
"fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:chrome",
|
||||
"fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:inspectorlib",
|
||||
] if hermes_is_debugger_enabled() else []
|
||||
|
|
|
@ -17,23 +17,23 @@ can get debug logs to show even when tests are passing by running the test
|
|||
executable directly:
|
||||
|
||||
```
|
||||
$ buck build fbsource//xplat/hermes-inspector:chrome-tests
|
||||
$ buck-out/gen/hermes-inspector/chrome-tests
|
||||
$ buck build fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:chrome-tests
|
||||
$ buck-out/gen/js/react-native-github/ReactCommon/hermes/inspector/chrome-tests
|
||||
[...]
|
||||
```
|
||||
|
||||
You can use standard gtest filters to only execute a particular set of tests:
|
||||
|
||||
```
|
||||
$ buck-out/gen/hermes-inspector/chrome-tests \
|
||||
$ buck-out/gen/js/react-native-github/ReactCommon/hermes/inspector/chrome-tests \
|
||||
--gtest_filter='ConnectionTests.testSetBreakpoint'
|
||||
```
|
||||
|
||||
You can debug the tests using lldb or gdb:
|
||||
|
||||
```
|
||||
$ lldb buck-out/gen/hermes-inspector/chrome-tests
|
||||
$ gdb buck-out/gen/hermes-inspector/chrome-tests
|
||||
$ lldb buck-out/gen/js/react-native-github/ReactCommon/hermes/inspector/chrome-tests
|
||||
$ gdb buck-out/gen/js/react-native-github/ReactCommon/hermes/inspector/chrome-tests
|
||||
```
|
||||
|
||||
# Formatting
|
||||
|
@ -42,7 +42,7 @@ Make sure the code is formatted using the hermes clang-format rules before
|
|||
committing:
|
||||
|
||||
```
|
||||
$ xplat/hermes-inspector/tools/format
|
||||
$ xplat/js/react-native-github/ReactCommon/hermes/inspector/tools/format
|
||||
```
|
||||
|
||||
We follow the clang format rules used by the rest of the Hermes project.
|
||||
|
@ -53,7 +53,7 @@ To add support for a new Chrome DevTools protocol message, add the message you
|
|||
want to add to tools/message_types.txt, and re-run the message types generator:
|
||||
|
||||
```
|
||||
$ xplat/hermes-inspector/tools/run_msggen
|
||||
$ xplat/js/react-native-github/ReactCommon/hermes/inspector/tools/run_msggen
|
||||
```
|
||||
|
||||
This will generate C++ structs for the new message type in
|
||||
|
|
|
@ -5,6 +5,6 @@ cd "$DIR"
|
|||
|
||||
FBSOURCE="$(hg root)"
|
||||
CLANG_FORMAT="$FBSOURCE/tools/third-party/clang-format/clang-format"
|
||||
SRC="$FBSOURCE/xplat/hermes-inspector"
|
||||
SRC="$FBSOURCE/xplat/js/react-native-github/ReactCommon/hermes/inspector"
|
||||
|
||||
find "$SRC" '(' -name '*.h' -or -name '*.cpp' ')' -exec "$CLANG_FORMAT" -i -style=file '{}' ';'
|
||||
|
|
|
@ -9,10 +9,10 @@ yarn install
|
|||
yarn build
|
||||
|
||||
FBSOURCE=$(hg root)
|
||||
MSGTYPES_PATH="${FBSOURCE}/xplat/hermes-inspector/tools/message_types.txt"
|
||||
MSGTYPES_PATH="${FBSOURCE}/xplat/js/react-native-github/ReactCommon/hermes/inspector/tools/message_types.txt"
|
||||
PROTO_PATH="${FBSOURCE}/xplat/third-party/chrome-devtools-protocol/json/js_protocol.json"
|
||||
HEADER_PATH="${FBSOURCE}/xplat/hermes-inspector/chrome/MessageTypes.h"
|
||||
CPP_PATH="${FBSOURCE}/xplat/hermes-inspector/chrome/MessageTypes.cpp"
|
||||
HEADER_PATH="${FBSOURCE}/xplat/js/react-native-github/ReactCommon/hermes/inspector/chrome/MessageTypes.h"
|
||||
CPP_PATH="${FBSOURCE}/xplat/js/react-native-github/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp"
|
||||
|
||||
node bin/index.js \
|
||||
--ignore-experimental \
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
source "$THIS_DIR/setup.sh"
|
||||
|
||||
buck test fbsource//xplat/hermes-inspector:chrome &&
|
||||
buck test fbsource//xplat/hermes-inspector:detail &&
|
||||
buck test fbsource//xplat/hermes-inspector:inspectorlib &&
|
||||
buck build fbsource//xplat/hermes-inspector:hermes-chrome-debug-server
|
||||
buck test fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:chrome &&
|
||||
buck test fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:detail &&
|
||||
buck test fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:inspectorlib &&
|
||||
buck build fbsource//xplat/js/react-native-github/ReactCommon/hermes/inspector:hermes-chrome-debug-server
|
||||
|
|
Загрузка…
Ссылка в новой задаче