Question
When running my Tizen web application in standard mode, I receive the following message in the console debug window: "The web console logging API (console.log, console.info, console.warn, console.error) has been disabled. To activate it, you should launch project with Debug mode."
When I try to debug by right-clicking my web app project and selecting "Debug As Tizen Web App", I get an error: "Cannot launch application with GDBServer. The application (63AW5BxMWn) is not running on emulator-26101"
The console shows: "setDebugConfigAttributes> isIme? false [Running the application with GDBServer...] GNU gdbserver (GDB) 7.8.1 Copyright (C) 2014 Free Software Foundation, Inc. gdbserver is free software, covered by the GNU General Public License. This gdbserver was configured as "i386-linux-gnueabi" 0"
Interestingly, I can see console.log output in the web inspector. Is this the expected behavior?
Answer
Problem Understanding
The issue occurs when trying to debug a Tizen web application. Console logging is disabled in standard run mode, and attempting to debug results in a GDBServer error while running on an emulator.
Solution Methods
-
Enable Debug Mode Properly:
- Right-click your project
- Select "Debug As" > "Debug Configurations"
- Create a new launch configuration if one doesn't exist
- Ensure the timeout value is set appropriately (higher for lower-spec systems)
-
Alternative Debugging Methods:
- Use the Web Inspector tool for JavaScript debugging
- Connect a physical Tizen device for more reliable debugging
- Verify Chrome is installed as it's required for Web Inspector
-
Troubleshooting GDBServer Errors:
- Check if the emulator is properly running
- Verify the application ID matches between your project and the emulator
- Consider increasing the debug timeout value
Additional Tips
- The Web Inspector provides comprehensive debugging capabilities including:
- Style inspection
- DOM inspection
- Resource inspection
- JavaScript debugging
- Remember that console logging methods (log, info, warn, error, debug) are color-coded in the debug output
- For physical devices, Samsung's Tizen-based devices (like Z series) are recommended for development