Question
When debugging a Web application on the Tizen emulator through Tizen Studio, I've observed that the app gets uninstalled and reinstalled each time, which deletes all persistent app data. This behavior is quite inconvenient for development.
I would like to know:
- Is there a way to update the app while preserving persistent data?
- Can I debug an already installed app without reinstalling?
- Are there alternative methods to debug a Web app without using Tizen Studio?
Answer
Problem Understanding
The user is experiencing inconvenience during Web app development because Tizen Studio's default debugging process involves uninstalling and reinstalling the application, which clears all persistent data. This makes it difficult to test persistent storage functionality during development.
Solution Methods
-
Use Live Edit Functionality:
- Tizen Studio's Live Edit feature allows you to modify source code while the application is running, with changes being reflected immediately without requiring a full reinstall.
- This preserves all application data including persistent storage.
- To use this feature:
- Run your application in debug mode
- Make code changes in Tizen Studio
- The changes will be automatically reflected in the running application
-
Debug Installed Applications:
- You can attach the debugger to an already installed application:
- Install your application normally
- In Tizen Studio, go to "Debug Configurations"
- Create a new configuration for your app
- Select "Attach to Web Application" option
- Start debugging
- You can attach the debugger to an already installed application:
Additional Tips
- For the Live Edit feature to work properly, ensure your application is running in debug mode.
- When using the attach method, make sure your application was built with debug symbols.
- Consider using browser-based debugging tools for Web applications when appropriate.