/page-spy-web

Debug remotely and easily like chrome devtools.

Primary LanguageTypeScript

English | 中文

PageSpyWeb

PageSpy is a remote debugging tool for web project.

Based on encapsulation of native web APIs, it filters and transforms the parameters of native methods when called, and converts into messages with specific format for consumption by the debugger client. The debugger presents ui in an interactive devtools-like for easy viewing after receives the message data.

When should I use?

It's PageSpy show time whenever you can't debug code with local devtools! Let's see the following instances:

Save communication time, improve collaboration efficiency: Telecommuting and cross-regional collaboration becoming more and more common,effective collaboration between programmers and testers become extremely important. However, traditional communication such as email, telephone, and video conferencing suffer from inefficient communication, incomplete issue information, and misunderstanding or misjudgment, etc. PageSpy provides project runtime info for technicians to view at the debugger client, and testers no longer need to provide issue information to technicians frequently by text, screenshot, and recording screen.

Accurately troubleshoot to avoid looking a needle in the ocean: When an application has a white screen or other similar fatal problems on the user's device, it has always been a difficult problem for technicians to quickly locate the error, accurately troubleshoot and fix it. Traditional methods of locating problems include data monitoring and log analysis, which not only consume a lot of time and energy to analyze and diagnose problems, but also rely heavily on technicians to understand business scenarios and code implementation.PageSpy presents the error message directly to the technician, eliminates other interference, just shows the code!

How to use?

For data security and your convenience, we provide a complete and out-of-box deployment solution.

Docker

docker run -d --restart=always -p 6752:6752 --name="pageSpy" ghcr.io/huolalatech/page-spy-web:release

Once the deployment is successful, the Inject SDK menu will be at the top, and you can view how to configure and integrate in the business project by click the menu.

Feature overview

Console Panel

Show the console.<log | info | warn | error> log data, support execute code;

Screenshot


Network Panel

Show the request of fetch | XMLHttpRequest | navigator.sendBeacon;

Screenshot


Page Panel

Show the current pageview and HTML node tree;

Screenshot


Storage Panel

Show the cache of localStorage | sessionStorage | cookie

Screenshot


Systems Panel

Show the userAgent info and some APIs compatibility;

Screenshot

Besides of above, you will get the realtime notification when there have new data or data changed.

Develop

  1. Clone the repo:
git clone https://github.com/HuolalaTech/page-spy-web.git
  1. Install the deps:
yarn install
  1. Local development:
# frontend
yarn start

# backend
cd backend/bin
go run local.go
  1. Build for production
yarn build:client