Minimize Part 5: Using .NET Debugging Tools

Tools Produce PDB Files

The last area to touch on is the debugger support in Ja.NET SE. The javac compiler included in SE is capable of producing Microsoft Program Database (PDB) files when you supply the -g option on the command line. The PDB files are compatible with the debugging tools provided by Microsoft, including the debugger integrated into the Visual Studio products. Also, when you use the bam tool to combine assemblies into larger ones produced by the Java compiler, you can provide the -g option on the command line and it will also merge all of the PDB files produced by the compiler into a combined database (PDB) for the assembly.

C:\>javac -g MyProgram.java
C:\>bam -cfg MyProgram.dll MyProgram.class HelloWorld.class
C:\>
C:\>javac -g -bam:MyProgram.dll MyProgram.java
C:\>