OLD | NEW |
---|---|
1 { | 1 { |
2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "hidden": true, | 5 "hidden": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
(...skipping 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2902 { | 2902 { |
2903 "id": "Scope", | 2903 "id": "Scope", |
2904 "type": "object", | 2904 "type": "object", |
2905 "properties": [ | 2905 "properties": [ |
2906 { "name": "type", "type": "string", "enum": ["global", "loca l", "with", "closure", "catch"], "description": "Scope type." }, | 2906 { "name": "type", "type": "string", "enum": ["global", "loca l", "with", "closure", "catch"], "description": "Scope type." }, |
2907 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip tion": "Object representing the scope. For <code>global</code> and <code>with</c ode> scopes it represents the actual object; for the rest of the scopes, it is a rtificial transient object enumerating scope variables as its properties." } | 2907 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip tion": "Object representing the scope. For <code>global</code> and <code>with</c ode> scopes it represents the actual object; for the rest of the scopes, it is a rtificial transient object enumerating scope variables as its properties." } |
2908 ], | 2908 ], |
2909 "description": "Scope description." | 2909 "description": "Scope description." |
2910 }, | 2910 }, |
2911 { | 2911 { |
2912 "id": "ExceptionMessage", | |
vsevik
2014/05/21 13:16:33
Exception details
| |
2913 "type": "object", | |
2914 "description": "Exception message.", | |
vsevik
2014/05/21 13:16:33
Detailed information on exception (or error) that
| |
2915 "properties": [ | |
2916 { "name": "text", "type": "string", "description": "Exceptio n text." }, | |
2917 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, | |
2918 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, | |
2919 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, | |
2920 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "description": "JavaScript stack trace for assertions and error mess ages." } | |
2921 ] | |
2922 }, | |
2923 { | |
2912 "id": "SetScriptSourceError", | 2924 "id": "SetScriptSourceError", |
2913 "type": "object", | 2925 "type": "object", |
2914 "properties": [ | 2926 "properties": [ |
2915 { "name": "compileError", "optional": true, "type": "object" , "properties": | 2927 { "name": "compileError", "optional": true, "type": "object" , "properties": |
2916 [ | 2928 [ |
2917 { "name": "message", "type": "string", "description" : "Compiler error message" }, | 2929 { "name": "message", "type": "string", "description" : "Compiler error message" }, |
2918 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" }, | 2930 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" }, |
2919 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" } | 2931 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" } |
2920 ] | 2932 ] |
2921 } | 2933 } |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3116 { | 3128 { |
3117 "name": "compileScript", | 3129 "name": "compileScript", |
3118 "hidden": true, | 3130 "hidden": true, |
3119 "parameters": [ | 3131 "parameters": [ |
3120 { "name": "expression", "type": "string", "description": "Ex pression to compile." }, | 3132 { "name": "expression", "type": "string", "description": "Ex pression to compile." }, |
3121 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." }, | 3133 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." }, |
3122 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omi tted or 0 the evaluation will be performed in the context of the inspected page. " } | 3134 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omi tted or 0 the evaluation will be performed in the context of the inspected page. " } |
3123 ], | 3135 ], |
3124 "returns": [ | 3136 "returns": [ |
3125 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." }, | 3137 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." }, |
3126 { "name": "syntaxErrorMessage", "type": "string", "optional" : true, "description": "Syntax error message if compilation failed." } | 3138 { "name": "exceptionMessage", "$ref": "ExceptionMessage", "o ptional": true, "description": "Exception message."} |
vsevik
2014/05/21 13:16:33
exceptionDetails here and in other places.
| |
3127 ], | 3139 ], |
3128 "description": "Compiles expression." | 3140 "description": "Compiles expression." |
3129 }, | 3141 }, |
3130 { | 3142 { |
3131 "name": "runScript", | 3143 "name": "runScript", |
3132 "hidden": true, | 3144 "hidden": true, |
3133 "parameters": [ | 3145 "parameters": [ |
3134 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." }, | 3146 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." }, |
3135 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omi tted or 0 the evaluation will be performed in the context of the inspected page. " }, | 3147 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omi tted or 0 the evaluation will be performed in the context of the inspected page. " }, |
3136 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, | 3148 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, |
3137 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." } | 3149 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." } |
3138 ], | 3150 ], |
3139 "returns": [ | 3151 "returns": [ |
3140 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Run result." }, | 3152 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Run result." }, |
3141 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the script run." } | 3153 { "name": "exceptionMessage", "$ref": "ExceptionMessage", "o ptional": true, "description": "Exception message."} |
3142 ], | 3154 ], |
3143 "description": "Runs script with given id in a given context." | 3155 "description": "Runs script with given id in a given context." |
3144 }, | 3156 }, |
3145 { | 3157 { |
3146 "name": "setOverlayMessage", | 3158 "name": "setOverlayMessage", |
3147 "parameters": [ | 3159 "parameters": [ |
3148 { "name": "message", "type": "string", "optional": true, "de scription": "Overlay message to display when paused in debugger." } | 3160 { "name": "message", "type": "string", "optional": true, "de scription": "Overlay message to display when paused in debugger." } |
3149 ], | 3161 ], |
3150 "hidden": true, | 3162 "hidden": true, |
3151 "description": "Sets overlay message." | 3163 "description": "Sets overlay message." |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4129 { | 4141 { |
4130 "name": "dataAvailable", | 4142 "name": "dataAvailable", |
4131 "parameters": [ | 4143 "parameters": [ |
4132 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } | 4144 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } |
4133 ], | 4145 ], |
4134 "handlers": ["browser", "frontend"] | 4146 "handlers": ["browser", "frontend"] |
4135 } | 4147 } |
4136 ] | 4148 ] |
4137 }] | 4149 }] |
4138 } | 4150 } |
OLD | NEW |