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 4545 "dev" : {
4646 "executor" : " nx:run-commands" ,
4747 "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" ,
4949 "tty" : true
5050 }
5151 },
Original file line number Diff line number Diff line change @@ -13,42 +13,39 @@ interface CLIArgs {
1313
1414function parseCliArgs ( ) : CLIArgs {
1515 return yargs ( hideBin ( process . argv ) )
16+ . usage (
17+ `
18+ XDebug Bridge Server CLI
19+
20+ Usage: xdebug-bridge [options]
21+ `
22+ )
1623 . option ( 'port' , {
1724 alias : 'p' ,
1825 type : 'number' ,
19- description : 'Port to listen on' ,
26+ description : 'Xdebug port to listen on' ,
2027 default : 9003 ,
2128 } )
2229 . option ( 'host' , {
2330 alias : 'h' ,
2431 type : 'string' ,
25- description : 'Host to bind to' ,
32+ description : 'Xdebug host to bind to' ,
2633 default : 'localhost' ,
2734 } )
2835 . option ( 'php-root' , {
2936 type : 'string' ,
30- description : 'Path to PHP root directory for file resolution ' ,
37+ description : 'Path to PHP root directory' ,
3138 default : './' ,
3239 } )
33- . option ( 'verbose' , {
34- alias : 'v' ,
35- type : 'boolean' ,
36- description : 'Enable verbose logging' ,
37- default : false ,
38- } )
39- . help ( )
40- . usage (
40+ . epilog (
4141 `
42- XDebug Bridge Server CLI
43-
44- Usage: xdebug-bridge [options]
45-
4642Examples:
4743 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+ `
5147 )
48+ . help ( )
5249 . parseSync ( ) as CLIArgs ;
5350}
5451
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