@@ -112,6 +112,66 @@ 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+ -e, --env <env_name > Selects the environment to debug. Default set on ".gadget/sync.json"
127+ -p, --port <port > Local port for the inspector proxy (default: 9229)
128+ --configure <editor > Configure debugger for vscode, cursor
129+
130+ Examples
131+ start debugger proxy for current environment
132+ $ ggt debugger
133+
134+ use a custom port
135+ $ ggt debugger --port 9230
136+
137+ debug a specific app and environment
138+ $ ggt debugger --app myApp --env development
139+
140+ configure VS Code debugger
141+ $ ggt debugger --configure vscode
142+ "
143+ `;
144+
145+ exports[`root > when debugger is given > prints the usage when -h is passed 1`] = `
146+ "Start a Chrome DevTools Protocol proxy server that connects to the Gadget debugger.
147+ This allows you to debug your Gadget app using VS Code, Chrome DevTools, or any other
148+ CDP-compatible debugger client.
149+
150+ Usage
151+ $ ggt debugger [DIRECTORY] [options]
152+
153+ DIRECTORY: The directory containing your Gadget app (default: current directory)
154+
155+ Options
156+ -e, --env <env_name > Selects the environment to debug. Default set on ".gadget/sync.json"
157+ -p, --port <port > Local port for the inspector proxy (default: 9229)
158+ --configure <editor > Configure debugger for vscode, cursor
159+
160+ Examples
161+ start debugger proxy for current environment
162+ $ ggt debugger
163+
164+ use a custom port
165+ $ ggt debugger --port 9230
166+
167+ debug a specific app and environment
168+ $ ggt debugger --app myApp --env development
169+
170+ configure VS Code debugger
171+ $ ggt debugger --configure vscode
172+ "
173+ `;
174+
115175exports[`root > when deploy is given > prints the usage when --help is passed 1`] = `
116176"Deploys your app to production.
117177
0 commit comments