1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
32
33 /*!
34 * ======== Main.xdc ========
35 * The xdc.rov.testserver displays ROV views to clients on the command line.
36 * The server expects that a CCS debugger is already started and an application
37 * is loaded.
38 *
39 * The DSlite port must be known at the time the server is started. Therefore,
40 * when starting CCS, the environment variable TI_DS_WEBSOCKET_PORT must be set
41 * and that same port number must be supplied to xdc.rov.testserver.
42 *
43 * Commands:
44 *
45 * Start the server -
46 * xs xdc.rov.testserver --exec <full path> --port <port_number>
47 *
48 * Get a list of Modules and Tabs
49 * l
50 *
51 * Get a Module's View
52 * v Module View
53 *
54 * Issue the command "Run" to the debugger
55 * r
56 *
57 * Issue the command "Pause" to the debugger
58 * p
59 *
60 * Evaluate an XDCScript or a JavaScript expression
61 * > expression
62 *
63 * Exit xdc.rov.testserver
64 * e
65 *
66 */
67 metaonly module Main inherits xdc.tools.ICmd {
68
69 override config String usage[] = [
70 ' ',
71 'Usage',
72 '[--exec <executable>]',
73 '[--port <DSLite Websocket port>]',
74 '[-v <debug level>]',
75 '[--help]',
76 ' ',
77 ];
78
79 instance:
80
81 /*!
82 * ======== exec ========
83 *
84 * Executable to run ROV on
85 *
86 */
87 @CommandOption('exec')
88 config String executable = "";
89
90 /*!
91 * ======== port ========
92 *
93 * DSLite port
94 *
95 * Corresponds to the value in the environment variable
96 * TI_DS_WEBSOCKET_PORT. The variable must be set at the time CCS is
97 * started.
98 */
99 @CommandOption('port')
100 config UInt port;
101
102 /*!
103 * ======== verbose ========
104 *
105 * Defines the amount of debug info
106 *
107 */
108 @CommandOption('v')
109 config UInt verbose = 0;
110 }