* @param client the client to which the visual debugger is to be attached
* @see <a href="http://www.mozilla.org/rhino/debugger.html">Mozilla Rhino Debugger Documentation</a>
*/
public static void attachVisualDebugger(final WebClient client) {
final ScopeProvider sp = null;
final HtmlUnitContextFactory cf = client.getJavaScriptEngine().getContextFactory();
final Main main = Main.mainEmbedded(cf, sp, "HtmlUnit JavaScript Debugger");
final SourceProvider sourceProvider = new SourceProvider() {
public String getSource(final DebuggableScript script) {
String sourceName = script.getSourceName();