jschrock
21 Aug 2015, 7:55 AM
Trying to inspect a local application. Made the changes to the app.json and Application.js files per the tutorial. When I try and launch my application I get the Uncaught ReferenceError: SenchaInspector is not defined error. I have used both the "Machine Name" as well as "localhost" for my configuration. Here is the app.json and Application.js where I have added the code for SenchaInspector. I must be missing something here, but not sure what.
app.json:
"js": [
{ "path": "${framework.dir}/build/ext-all-rtl-debug.js" },
{ "path": "app.js", "bundle": true },
//Sencha Inspector code
{
// default settings
//"path" : "http://localhost:3000/inspector.js",
// Or Use your Machine Name "path" : "http://MyComputerName:3000/inspector.js",
// Or Use your IP Address //"path" : "http://123.456.78.90:3000/inspector.js",
"remote" : true,
"bootstrap" : true
}
],
Application.js:
launch: function () {
SenchaInspector.init('http://localhost:3000/inspector.js');
other code....
}
app.json:
"js": [
{ "path": "${framework.dir}/build/ext-all-rtl-debug.js" },
{ "path": "app.js", "bundle": true },
//Sencha Inspector code
{
// default settings
//"path" : "http://localhost:3000/inspector.js",
// Or Use your Machine Name "path" : "http://MyComputerName:3000/inspector.js",
// Or Use your IP Address //"path" : "http://123.456.78.90:3000/inspector.js",
"remote" : true,
"bootstrap" : true
}
],
Application.js:
launch: function () {
SenchaInspector.init('http://localhost:3000/inspector.js');
other code....
}