Skip to content

Commit ed488c5

Browse files
authored
Update debug help (#333)
1 parent 441619a commit ed488c5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

webdev/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ Usage: webdev serve [arguments] [<directory>[:<port>]]...
4545
(loses current state)
4646
refresh: Performs a full page refresh.
4747
[restart, refresh]
48+
4849
--chrome-debug-port Specify which port the Chrome debugger is
4950
listening on. If used with launch-in-chrome
5051
Chrome will be started with the debugger
5152
listening on this port.
5253

53-
--[no-]debug Enable the launching of DevTools (Alt + D).
54-
Must use with either --launch-in-chrome or
55-
--chrome-debug-port.
54+
--[no-]debug Enable the launching of DevTools (Alt + D /
55+
Option + D). This also enables
56+
--launch-in-chrome.
5657

5758
--hostname Specify the hostname to serve on.
5859
(defaults to "localhost")
5960

60-
6161
--[no-]launch-in-chrome Automatically launches your application in
6262
Chrome with the debug port open. Use
6363
chrome-debug-port to specify a specific port

webdev/lib/src/command/serve_command.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ refresh: Performs a full page refresh.
6363
'If used with $launchInChromeFlag Chrome will be started with the'
6464
' debugger listening on this port.')
6565
..addFlag(debugFlag,
66-
help: 'Enable the launching of DevTools (Alt + D). '
67-
'Must use with either --$launchInChromeFlag or '
68-
'--$chromeDebugPortFlag.')
66+
help: 'Enable the launching of DevTools (Alt + D / Option + D). '
67+
'This also enables --$launchInChromeFlag.')
6968
..addOption(hostnameFlag,
7069
help: 'Specify the hostname to serve on.', defaultsTo: 'localhost')
7170
..addFlag(hotRestartFlag,

0 commit comments

Comments
 (0)