npm install --save @b.taranenko/js-remote-debugger
yarn add @b.taranenko/js-remote-debugger
- Go to Javascript Remote Debugger site
- Add workspace name (optional)
- Generate workspace
- Inside your project:
import remoteDebugger from '@b.taranenko/js-remote-debugger';
// app startup
remoteDebugger.initialize(YOUR_WORKSPACE_ID) // should be called BEFORE any remoteDebugger.log() calls
remoteDebugger.setUserInfo(string) // optional
// somewhere in your code
await remoteDebugger.log(
{
type: REGULAR | WARNING | INFO | ERROR,
data: any,
label: string // (optional),
},
(event) => void // onSuccess (optional),
(error) => void // onError (optional),
)