net.rim.device.api.browser.field2.debug
Class BrowserFieldDebugContext

java.lang.Object
  extended by net.rim.device.api.browser.field2.debug.BrowserFieldDebugContext

Deprecated. Debugger is deprecated in 6.0

public class BrowserFieldDebugContext
extends Object

This class provides debug access to the javascript engine. It reveals standard debugging functions which can be used to make a functional debugger.

Since:
BlackBerry API 5.0.0

Method Summary
 Object eval(String script)
          Deprecated.  
 BrowserFieldDebugContext getCallingContext()
          Deprecated. This is useful when trying to create a callstack.
 String getException()
          Deprecated. Gets the Exception that was thrown by the context.
 String getFunctionName()
          Deprecated. Gets the name of the function (without parameters) that the debugger is currently broken in
 int getLineNumber()
          Deprecated.  
 boolean isRunningScript(BrowserFieldScript script)
          Deprecated. This is used to determine if the running script is the script provided.
 void resume()
          Deprecated. Continue executing until the script has completed or another breakpoint is encountered.
 void stepInto()
          Deprecated. Executes the current line of code.
 void stepNone()
          Deprecated. Do not step.
 void stepOut()
          Deprecated. Executes the current line of code.
 void stepOver()
          Deprecated. Execute the current line of code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Method Detail

getException

public String getException()
Deprecated. 
Gets the Exception that was thrown by the context.

Returns:
the associated text of the exception or null if there was no Exception thrown.
Since:
BlackBerry API 5.0.0

isRunningScript

public boolean isRunningScript(BrowserFieldScript script)
Deprecated. 
This is used to determine if the running script is the script provided.

Returns:
true if the script is running, false otherwise.
Since:
BlackBerry API 5.0.0

getCallingContext

public BrowserFieldDebugContext getCallingContext()
Deprecated. 
This is useful when trying to create a callstack. Each context is similar to an individual function, so context calls can be traced back to create a callstack.

Returns:
the context that calls this context, null if there is no calling context.
Since:
BlackBerry API 5.0.0

resume

public void resume()
Deprecated. 
Continue executing until the script has completed or another breakpoint is encountered.

Since:
BlackBerry API 5.0.0

stepOver

public void stepOver()
Deprecated. 
Execute the current line of code. If the current like of code contains a function call then wait for the function to return and break at the next available line.

Since:
BlackBerry API 5.0.0

stepInto

public void stepInto()
Deprecated. 
Executes the current line of code. If the current line of code contains a function call then execute the function call and break at the first available line in the function.

Since:
BlackBerry API 5.0.0

stepOut

public void stepOut()
Deprecated. 
Executes the current line of code. Continue executing code until a function returns to its calling statement, then break at the calling statement.

Since:
BlackBerry API 5.0.0

stepNone

public void stepNone()
Deprecated. 
Do not step.

Since:
BlackBerry API 5.0.0

getLineNumber

public int getLineNumber()
Deprecated. 
Returns:
the current line of the script that the debugger is broken on.
Since:
BlackBerry API 5.0.0

eval

public Object eval(String script)
Deprecated. 
Parameters:
script - The source code of the script that you would like to execute within the context that is currently being debugged.
Returns:
the result of the evaluated script.
Since:
BlackBerry API 5.0.0

getFunctionName

public String getFunctionName()
Deprecated. 
Gets the name of the function (without parameters) that the debugger is currently broken in

Returns:
the name of the function.
Since:
BlackBerry API 5.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal