15.07.2013 Views

jgrasp handbook

jgrasp handbook

jgrasp handbook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

\xnn hexadecimal representation of character<br />

\nn or \nnn octal representation of character<br />

Any other backslashed character matches itself<br />

This is the extended syntax that is supported:<br />

• Quantified atoms<br />

• Atoms<br />

o {n,m} Match at least n but not more than m times.<br />

o {n,} Match at least n times.<br />

o {n} Match exactly n times.<br />

o Special backslashed characters<br />

\d digit [0-9]<br />

\D non-digit [^0-9]<br />

\w word character [0-9a-z_A-Z]<br />

\W a non-word character [^0-9a-z_A-Z]<br />

\s a whitespace character [ \t\n\r\f]<br />

\S a non-whitespace character [^ \t\n\r\f]<br />

\cD matches the corresponding control character<br />

\0 matches null character<br />

19 Integrated Java Debugger<br />

DRAFT, February 18, 2003, Page 99<br />

jGRASP has an integrated debugger for Java. When the debug command is run, if it responds with a<br />

transport address (a line like "Listening for transport X at address: Y." ), jGRASP will start the debugger.<br />

The default "jdk (integrated debugger) - generic" compiler environment will debug an application or<br />

applet with Sun's JDK 1.3. JDK 1.2 with the JPDA for 1.2 might also work, but will probably be quite<br />

buggy.<br />

To use the integrated debugger, jGRASP must be running under the JDK (not a JRE). If you are having<br />

some problem with this (you get a "tools.jar file not on classpath" message when attempting to debug),<br />

putting the JDK bin directory at the beginning of the PATH should fix this. For a detailed description of<br />

how the jGRASP startup programs find/choose java, see Running jGRASP.<br />

Also, you must be running (debugging) your programs under the JDK. The default Java compiler<br />

environment uses the classic VM, which is not included in the JRE (you could try copying the compiler<br />

environment and modifying it to use HotSpot, but we don't recommend it, as the HotSpot/debugger<br />

combination is slow and buggy). If you have the JDK bin directory at the beginning of your PATH and use<br />

the default Java compiler environment in jGRASP, there should be no problem. If you can't set things up<br />

that way, you will need to copy, modify (add to PATH environment variable), and use a Java compiler<br />

environment - see Settings and Compiler Environment Dialog.<br />

Do not use the integrated debugger on a dual-processor Windows NT system, as this will most likely lock<br />

up jGRASP and the target process, frequently if not always.<br />

Using the integrated debugger may lock up jGRASP occasionally. If this happens consistently (every time<br />

or every time for some particular target program), or if there are stack dumps from jGRASP, let us know.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!