gwadb

The gwadb is a debug tool that allows you to debug GWA applications generated by gwabuildtool in the browser on your desktop.

Syntax

gwadb {  module_name[.42m] | homepage }
  1. module_name is the name of the program module which the command is to debug.
  2. homepage is the name of the main HTML page of your application. Typically, this is index.html

Usage

To run gwadb, you need to have it in your PATH (see Install Genero Web Application).

For example, to start a debug session in a directory where you have a program called main.4gl, you must first compile your program and then run the debug command:
$ gwadb main
Internally, this command will call gwabuildtool to build the application package in the gwa_dist directory and gwasrv will be called to serve your application in the browser.
If you have already built your application package with gwabuildtool, you can run the gwadb command with the home page in the default gwa_dist directory:
gwabuildtool -p .
gwadb gwa_dist/index.html 
The application will open in the browser. In the terminal, the fgldb debugging tool will be running in attached mode to your program, where you can run fgldb commands.
gwadb main
gwadb:Wait for debuggee.....running fgldb on port:9400
(fgldb) run

For more details about using fgldb tool commands and debugging, go to Starting fglrun in debug mode or type help at the prompt.

For more examples, go to Debugging GWA apps.