Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: mojo/devtools/common/mojo_run

Issue 2070303002: Fix bug where debugger.mojo not found in some build configurations (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698