File tree Expand file tree Collapse file tree 3 files changed +27
-19
lines changed Expand file tree Collapse file tree 3 files changed +27
-19
lines changed Original file line number Diff line number Diff line change 45
45
"dev" : {
46
46
"executor" : " nx:run-commands" ,
47
47
"options" : {
48
- "command" : " bun --watch ./packages/php-wasm/cli/src/main.ts" ,
48
+ "command" : " node --no-warnings --experimental-wasm-stack-switching --experimental-wasm-jspi --loader=./packages/meta/src/node-es-module-loader/loader.mts ./packages/php-wasm/cli/src/main.ts" ,
49
49
"tty" : true
50
50
}
51
51
},
Original file line number Diff line number Diff line change @@ -13,42 +13,39 @@ interface CLIArgs {
13
13
14
14
function parseCliArgs ( ) : CLIArgs {
15
15
return yargs ( hideBin ( process . argv ) )
16
+ . usage (
17
+ `
18
+ XDebug Bridge Server CLI
19
+
20
+ Usage: xdebug-bridge [options]
21
+ `
22
+ )
16
23
. option ( 'port' , {
17
24
alias : 'p' ,
18
25
type : 'number' ,
19
- description : 'Port to listen on' ,
26
+ description : 'Xdebug port to listen on' ,
20
27
default : 9003 ,
21
28
} )
22
29
. option ( 'host' , {
23
30
alias : 'h' ,
24
31
type : 'string' ,
25
- description : 'Host to bind to' ,
32
+ description : 'Xdebug host to bind to' ,
26
33
default : 'localhost' ,
27
34
} )
28
35
. option ( 'php-root' , {
29
36
type : 'string' ,
30
- description : 'Path to PHP root directory for file resolution ' ,
37
+ description : 'Path to PHP root directory' ,
31
38
default : './' ,
32
39
} )
33
- . option ( 'verbose' , {
34
- alias : 'v' ,
35
- type : 'boolean' ,
36
- description : 'Enable verbose logging' ,
37
- default : false ,
38
- } )
39
- . help ( )
40
- . usage (
40
+ . epilog (
41
41
`
42
- XDebug Bridge Server CLI
43
-
44
- Usage: xdebug-bridge [options]
45
-
46
42
Examples:
47
43
xdebug-bridge # Start with default settings
48
- xdebug-bridge --port 9000 --verbose # Custom port with verbose logging
49
- xdebug-bridge --php-root /path/to/php/files # Specify PHP root directory
50
- `
44
+ xdebug-bridge --port 9000 --verbose # Custom port with verbose logging
45
+ xdebug-bridge --php-root /path/to/php/files # Specify PHP root directory
46
+ `
51
47
)
48
+ . help ( )
52
49
. parseSync ( ) as CLIArgs ;
53
50
}
54
51
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ test = 42 ;
4
+
5
+ echo "Output! \n" ;
6
+
7
+ function test () {
8
+ echo "Hello Xdebug World! \n" ;
9
+ }
10
+
11
+ test ();
You can’t perform that action at this time.
0 commit comments