Files
Hippy/devtools/devtools-backend
88e8a3ab72 feat(devtools): remove base lib and adopt footstone (#2177)
* feat(devtools): remove base lib and adopt footstone

* feat(devtools): fix workermanager crash

* feat(devtools): fix conflit

* feat(devtools): add devtools macros

* fix(cmake): update cmake script to use gloabl packages module

* feat(devtools): remove devtools_base/logging

* feat(devtools): move tdf_string_util.cc to footstone

* feat(devtools): remove devtools_base

* feat(devtools): chore macros

* fix(devtools): remove unuse space

* fix(devtools): fix ios work manager

* fix(devtools): remove unuse %s

* fix(devtools): fix ios compile

Co-authored-by: Super Zheng <medns@126.com>
Co-authored-by: ivanfanwu <ivanfanwu@tencent.com>
Co-authored-by: Zoom Chan <zoom_chan@163.com>
2022-07-12 12:41:35 +08:00
..
2022-05-30 07:09:49 -05:00
2022-05-30 07:09:49 -05:00

Introduction

DevTools Backend is the Backend Service of Hippy Debugging DevTools, that mainly to establish connecting channel which support websocket and tcp, distributes debugging CDP and TDF protocol, and collect debugging data of frameworks and Renderers.

Getting started

Architecture

devtools Architecture

  • Tunnel Service, /tunnel dir, to handle connecting channel with frontend, which support websocket and tcp.
  • Domain Dispatch, /module dir, to dispatch debugging CDP and TDF protocol by Domain.Method.
  • Data Provider, /api dir, to collect debugging data of frameworks and Renderers. There has two ways to inject debugging data, one is to implement adapter interface which received from frontend, and the other is the notification to notify frontend.

Unit Test

  1. first install test tools:
brew install lcov
  1. open terminal and run:
cmake .
cd test
sh build.sh