aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/BunInspector.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-05[Inspector] Introduce `inspector: true` in Bun.serve()Gravatar Jarred Sumner 1-0/+184
This exposes the WebKit inspector debugger protocol over WebSockets at the endpoint `/bun:inspect` when `Bun.serve()`. To enable, pass: ```js Bun.serve({inspector: true, development: true, fetch(req){ /* rest of params *... }); ``` Both `development` and `inspector` must be true, as this is very security sensitive to expose publicly.