Development Workflow
Your development workflow with WebF is designed to be as close as possible to standard web development.
Project Structure
Because you are using a standard web tool like Vite to create your project, the project structure is exactly what you would expect. There are no special WebF-specific files or configurations required in your WebF app project.
Hot Reload
WebF fully supports the Hot Module Replacement (HMR) capabilities of modern web development servers like Vite. Any changes you make to your source code will be instantly reflected in the running WebF application.
Using the DevTools
WebF integrates with Chrome DevTools for DOM inspection and console logging, and also includes its own built-in tools for performance profiling.
For DOM and Console Debugging
- While your app is running, click the floating action button with the debug icon. This opens the WebF DevTools panel.
- In the panel, click the “Copy” icon to get the DevTools URL (
devtools://...). - Paste this URL into a desktop Google Chrome browser to connect the inspector.
With the Chrome DevTools connected, you can:
- View
console.log()messages. - Inspect the DOM element tree and CSS styles.
- Analyze network requests in the “Network” tab.
Note: The JavaScript debugger (e.g., setting breakpoints in the “Sources” tab) is not yet supported in the Chrome DevTools integration. For performance profiling, use performance.mark() and performance.measure() APIs in your code.
Reading JS Logs from the Command Line
As an alternative to the DevTools UI, you can view console.log messages using platform-specific tools.
macOS (for the desktop app)
/Applications/WebF\ Go.app/Contents/MacOS/WebF\ GoWindows
# Navigate to the installation directory and run the executable
.\webf_go.exeLinux
# Navigate to the installation directory and run the executable
./webf_goAndroid
# Use the Android Debug Bridge (adb) to view logs
adb logcat | grep "WEBF_NATIVE_LOG"iOS
- Ensure your connected iOS device has Developer Mode enabled.
- On your Mac, open the Console.app.
- Select your iOS device from the sidebar.
- In the search bar, filter the logs by entering
WEBF_NATIVE_LOG.