OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import argparse | 6 import argparse |
7 import logging | 7 import logging |
8 import sys | 8 import sys |
9 | 9 |
10 from devtoolslib import shell_arguments | 10 from devtoolslib import shell_arguments |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 The value of <handlers> is a comma separated list like: | 27 The value of <handlers> is a comma separated list like: |
28 text/html,mojo:html_viewer,application/javascript,mojo:js_content_handler | 28 text/html,mojo:html_viewer,application/javascript,mojo:js_content_handler |
29 """ | 29 """ |
30 | 30 |
31 # Port on which the mojo:debugger http server will be available on the host | 31 # Port on which the mojo:debugger http server will be available on the host |
32 # machine. | 32 # machine. |
33 _MOJO_DEBUGGER_PORT = 7777 | 33 _MOJO_DEBUGGER_PORT = 7777 |
34 _LAUNCHER = 'mojo:launcher' | 34 _LAUNCHER = 'mojo:launcher' |
35 | 35 |
36 _DEBUGGER_URL = 'https://core.mojoapps.io/debugger.mojo' | 36 _DEBUGGER_URL = 'mojo:debugger' |
37 | 37 |
38 | 38 |
39 def _configure_debugger(shell): | 39 def _configure_debugger(shell): |
40 """Configures debugger.mojo to run and sets up port forwarding for its http | 40 """Configures debugger.mojo to run and sets up port forwarding for its http |
41 server if the shell is running on a device. | 41 server if the shell is running on a device. |
42 | 42 |
43 Returns: | 43 Returns: |
44 Arguments that need to be appended to the shell argument list in order to | 44 Arguments that need to be appended to the shell argument list in order to |
45 run with the debugger. | 45 run with the debugger. |
46 """ | 46 """ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 if script_args.verbose: | 84 if script_args.verbose: |
85 print "Shell arguments: " + str(shell_args) | 85 print "Shell arguments: " + str(shell_args) |
86 | 86 |
87 shell.run(shell_args) | 87 shell.run(shell_args) |
88 return 0 | 88 return 0 |
89 | 89 |
90 | 90 |
91 if __name__ == "__main__": | 91 if __name__ == "__main__": |
92 sys.exit(main()) | 92 sys.exit(main()) |
OLD | NEW |