@@ -112,6 +112,72 @@ Usage
112112"
113113`;
114114
115+ exports[`root > when debugger is given > prints the usage when --help is passed 1`] = `
116+ "Start a Chrome DevTools Protocol proxy server that connects to the Gadget debugger.
117+ This allows you to debug your Gadget app using VS Code, Chrome DevTools, or any other
118+ CDP-compatible debugger client.
119+
120+ Usage
121+ $ ggt debugger [DIRECTORY] [options]
122+
123+ DIRECTORY: The directory containing your Gadget app (default: current directory)
124+
125+ Options
126+ -a, --app <app_name > Selects the app to connect to. Default set on ".gadget/sync.json"
127+ -e, --env <env_name > Selects the environment to debug. Default set on ".gadget/sync.json"
128+ -p, --port <port > Local port for the inspector proxy (default: 9229)
129+ --configure <editor > Configure debugger for vscode, cursor
130+ --allow-unknown-directory Allow debugging in any directory
131+ --allow-different-app Allow debugging with a different app
132+
133+ Examples
134+ start debugger proxy for current environment
135+ $ ggt debugger
136+
137+ use a custom port
138+ $ ggt debugger --port 9230
139+
140+ debug a specific app and environment
141+ $ ggt debugger --app myApp --env development
142+
143+ configure VS Code debugger
144+ $ ggt debugger --configure vscode
145+ "
146+ `;
147+
148+ exports[`root > when debugger is given > prints the usage when -h is passed 1`] = `
149+ "Start a Chrome DevTools Protocol proxy server that connects to the Gadget debugger.
150+ This allows you to debug your Gadget app using VS Code, Chrome DevTools, or any other
151+ CDP-compatible debugger client.
152+
153+ Usage
154+ $ ggt debugger [DIRECTORY] [options]
155+
156+ DIRECTORY: The directory containing your Gadget app (default: current directory)
157+
158+ Options
159+ -a, --app <app_name > Selects the app to connect to. Default set on ".gadget/sync.json"
160+ -e, --env <env_name > Selects the environment to debug. Default set on ".gadget/sync.json"
161+ -p, --port <port > Local port for the inspector proxy (default: 9229)
162+ --configure <editor > Configure debugger for vscode, cursor
163+ --allow-unknown-directory Allow debugging in any directory
164+ --allow-different-app Allow debugging with a different app
165+
166+ Examples
167+ start debugger proxy for current environment
168+ $ ggt debugger
169+
170+ use a custom port
171+ $ ggt debugger --port 9230
172+
173+ debug a specific app and environment
174+ $ ggt debugger --app myApp --env development
175+
176+ configure VS Code debugger
177+ $ ggt debugger --configure vscode
178+ "
179+ `;
180+
115181exports[`root > when deploy is given > prints the usage when --help is passed 1`] = `
116182"Deploys your app to production.
117183
0 commit comments