The SmartClient Developer console is extremely useful in troubleshooting issues and displays really useful log messages (like duplicate ID's). It is useful to have it open at all times when you developing in hosted mode.
Aug 17 2009 : Note that you now need to inherit the module com.smartgwt.tools.SmartGwtTools in order to be able to use the Developer Console
The 11-24-2008 build has a method called Page.registerKey so you can add the following to your entry point :
This adds a shortcut Ctrl + D key to launch the Developer Console in hosted mode. This convenience shortcut will hopefully encourage users to make extensive use of the Developer Console. It is really a huge time saver when troubleshooting.
Here's another tip:
Viewing RPC responses in Dev Console
Launch the Dev Console, go to the "RPC" tab and select the checkbox "Track RPCs". Now various SmartGWT communication's with the server gets logged in the display region.
Sanjiv
Aug 17 2009 : Note that you now need to inherit the module com.smartgwt.tools.SmartGwtTools in order to be able to use the Developer Console
The 11-24-2008 build has a method called Page.registerKey so you can add the following to your entry point :
Code:
if (!GWT.isScript()) { KeyIdentifier debugKey = new KeyIdentifier(); debugKey.setCtrlKey(true); debugKey.setKeyName("D"); Page.registerKey(debugKey, new KeyCallback() { public void execute(String keyName) { SC.showConsole(); } }); }
Here's another tip:
Viewing RPC responses in Dev Console
Launch the Dev Console, go to the "RPC" tab and select the checkbox "Track RPCs". Now various SmartGWT communication's with the server gets logged in the display region.
Sanjiv
Comment