@php-wasm/xdebug-bridge 3.1.18 → 3.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -22
- package/cli.cjs +1 -1
- package/cli.js +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +9 -8
- package/run-cli-C15jrZ5h.cjs +123 -0
- package/{run-cli-EH0Eghg1.js → run-cli-Czgudx2V.js} +2617 -2635
- package/run-cli-DHPcno7N.cjs +0 -123
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ import { startBridge } from './xdebug-bridge/src/start-bridge';
|
|
|
25
25
|
|
|
26
26
|
// Start with custom configuration
|
|
27
27
|
const server = startBridge({
|
|
28
|
-
cdpHost: '
|
|
28
|
+
cdpHost: '127.0.0.1', // CDP connection host
|
|
29
29
|
cdpPort: 9229, // CDP connection port
|
|
30
30
|
dbgpPort: 9003, // XDebug connection port
|
|
31
31
|
phpRoot: './', // Root to directory
|
|
@@ -49,22 +49,22 @@ npx xdebug-bridge --help
|
|
|
49
49
|
|
|
50
50
|
## Configuration Options (CLI)
|
|
51
51
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
52
|
+
- `port`: Xdebug port to listen on (default: 9003)
|
|
53
|
+
- `host`: Xdebug host to bind to (default: 'localhost')
|
|
54
|
+
- `php-root`: Path to PHP root directory (default: './')
|
|
55
|
+
- `verbosity`: Output logs and progress messages (choices: "quiet", "normal", "debug") (default: "normal")
|
|
56
|
+
- `help`: Display help
|
|
57
57
|
|
|
58
58
|
## Configuration Options (API)
|
|
59
59
|
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
60
|
+
- `cdpPort`: Port to listen for CDP connections (default: 9229)
|
|
61
|
+
- `cdpHost`: Host to bind to (default: '127.0.0.1')
|
|
62
|
+
- `dbgpPort`: Port to listen for XDebug connections (default: 9003)
|
|
63
|
+
- `phpRoot`: Root path for php files
|
|
64
|
+
- `verbosity`: Output logs and progress messages (choices: "quiet", "normal", "debug") (default: "normal")
|
|
65
|
+
- `phpInstance`: PHP instance
|
|
66
|
+
- `getPHPFile`: Custom file listing function
|
|
67
|
+
- `breakOnFirstLine`: Breaks on the first breakable line
|
|
68
68
|
|
|
69
69
|
## Events
|
|
70
70
|
|
|
@@ -72,14 +72,14 @@ The bridge listens to events for monitoring connection activity:
|
|
|
72
72
|
|
|
73
73
|
#### From Xdebug
|
|
74
74
|
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
75
|
+
- `connected`: Xdebug Server has started
|
|
76
|
+
- `disconnected`: Xdebug Server has stopped
|
|
77
|
+
- `message`: Raw XDebug data received
|
|
78
|
+
- `error`: Xdebug Server error occurred
|
|
79
79
|
|
|
80
80
|
#### To Devtools
|
|
81
81
|
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
82
|
+
- `clientConnected`: Devtools client connected
|
|
83
|
+
- `clientDisconnected`: Devtools client disconnected
|
|
84
|
+
- `message`: Raw Devtools data received
|
|
85
|
+
- `error`: Devtools client error occurred
|
package/cli.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./run-cli-
|
|
1
|
+
"use strict";const i=require("./run-cli-C15jrZ5h.cjs");i.main();
|
package/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { m } from "./run-cli-
|
|
1
|
+
import { m } from "./run-cli-Czgudx2V.js";
|
|
2
2
|
m();
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./run-cli-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./run-cli-C15jrZ5h.cjs");exports.CDPServer=e.CDPServer;exports.DbgpSession=e.DbgpSession;exports.XdebugCDPBridge=e.XdebugCDPBridge;exports.main=e.main;exports.startBridge=e.startBridge;
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/xdebug-bridge",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.20",
|
|
4
4
|
"description": "XDebug bridge server for PHP.wasm",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "GPL-2.0-or-later",
|
|
41
41
|
"types": "index.d.ts",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "98cfca0a050ef1dacce25710d6ebdf816e80b764",
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=20.10.0",
|
|
45
45
|
"npm": ">=10.2.3"
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"ini": "4.1.2",
|
|
52
52
|
"jsonc-parser": "3.3.1",
|
|
53
53
|
"wasm-feature-detect": "1.8.0",
|
|
54
|
-
"ws": "8.18.
|
|
54
|
+
"ws": "8.18.0",
|
|
55
55
|
"xml2js": "0.6.2",
|
|
56
56
|
"yargs": "17.7.2",
|
|
57
|
-
"@php-wasm/logger": "3.1.
|
|
58
|
-
"@php-wasm/universal": "3.1.
|
|
59
|
-
"@wp-playground/common": "3.1.
|
|
60
|
-
"@php-wasm/node": "3.1.
|
|
57
|
+
"@php-wasm/logger": "3.1.20",
|
|
58
|
+
"@php-wasm/universal": "3.1.20",
|
|
59
|
+
"@wp-playground/common": "3.1.20",
|
|
60
|
+
"@php-wasm/node": "3.1.20"
|
|
61
61
|
},
|
|
62
62
|
"packageManager": "npm@10.9.2",
|
|
63
63
|
"overrides": {
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"tmp": "0.2.5",
|
|
70
70
|
"form-data": "^4.0.4",
|
|
71
71
|
"lodash": "^4.17.23",
|
|
72
|
-
"glob": "^9.3.0"
|
|
72
|
+
"glob": "^9.3.0",
|
|
73
|
+
"webpackbar": "^7.0.0"
|
|
73
74
|
}
|
|
74
75
|
}
|