You can gather debugging information while running the app:
You set the loggable categories that appear in the Appcelerator Studio console or in the Admin Dashboard. When you initially start viewing logs, you might want to specify "all" to ensure you get as much information as possible.
You can set the loggable category to be very specific. When you set a loggable category, all of its sub-categories are also logged. For more details, see Logging.
When running the app from Appcelerator Studio, you can view the console to see the logging information.
When customizing the Endless Aisle app in Appcelerator Studio, you run the app in the simulator. When ready, you can then deploy the app to a device, such as an iPad.
allow_simulate_payment : true
. Before deploying the
app to a device, you should disable simulating payment.Xcode Debugger and Appcelerator Studio Debugger can be connected to the same iOS process at the same time for debugging, which allows for debugging JavaScript and Objective-C code at the same time.
You must change “Release” to “Debug” in the build.py file in the module’s code directory to create debug builds.
To connect a running app to Xcode, in the Debug menu, select Attach to Process. Select the Endless Aisle app. You can then set breakpoints and step through the code. You can view the console to see information such as the iOS logging statements.
When you have deployed the Endless Aisle app to a device, such as an iPad, you can connect the device to your development machine to view the console log of the device.
You should set up error logging for Endless Aisle. If a store associate encounters a JavaScript error in the app, a dialog appears with the error, for example "Can't find variable: items at enterAddressNoState.js (line 45)". The associate can enter information about what actions they were performing and send that information to the admin email address.
To access the Admin Dashboard in the app, tap the Hamburger Menu and select Admin Dashboard. You can use the Admin Dashboard while customizing and debugging the app or even in the store to gather information including:
To assist in debugging, the Admin Dashboard also lets you:
The model tests that are available with the Endless Aisle source are configured to run with the out-of-the-box app. To be able to test your app, you modify the data that the tests use. To change the data that the tests use, you modify the app/assets/config/modelTest.js file. You should specify data that is valid for all the stores where the app is deployed. When you run the tests, you should be aware that they use the current login session. You shouldn't be shopping on behalf of a customer; the tests can modify basket contents. You also might not want to be logged in as an associate (other than the one specified in the app/assets/config/modelTest.js file).
You can see the most recent 100 lines of the console log. This is the same content that appears in the Appcelerator Studio console. You might want to specify "all" as the loggable category to ensure you get as much information as possible.
To view the Endless Aisle server logs you configure Business Manager.