ClassFileAnalyzer (Can)
Home

 

Example: TestCanDebug

Test directive .debug

 

Hexdump TestCanDebug.class 

ca fe ba be 00 00 00 32 00 10 0a 00 0f 00 07 01     .......2........     0
00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65     ..java/lang/Obje     16
63 74 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 01     ct...SourceFile.     32
00 06 3c 69 6e 69 74 3e 07 00 0a 01 00 04 6d 61     ..<init>......ma     48
69 6e 0c 00 04 00 0c 01 00 04 43 6f 64 65 01 00     in........Code..     64
0f 4c 69 6e 65 4e 75 6d 62 65 72 54 61 62 6c 65     .LineNumberTable     80
01 00 0c 54 65 73 74 43 61 6e 44 65 62 75 67 01     ...TestCanDebug.     96
00 16 28 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53     ..([Ljava/lang/S     112
74 72 69 6e 67 3b 29 56 01 00 03 28 29 56 01 00     tring;)V...()V..     128
11 54 65 73 74 43 61 6e 44 65 62 75 67 2e 6a 61     .TestCanDebug.ja     144
76 61 01 00 14 53 6f 75 72 63 65 44 65 62 75 67     va...SourceDebug     160
45 78 74 65 6e 73 69 6f 6e 07 00 02 00 21 00 05     Extension....!..     176
00 0f 00 00 00 00 00 02 00 01 00 04 00 0c 00 01     ................     192
00 08 00 00 00 1d 00 01 00 01 00 00 00 05 2a b7     ..............*.     208
00 01 b1 00 00 00 01 00 09 00 00 00 06 00 01 00     ................     224
00 00 03 00 09 00 06 00 0b 00 01 00 08 00 00 00     ................     240
19 00 00 00 01 00 00 00 01 b1 00 00 00 01 00 09     ................     256
00 00 00 06 00 01 00 00 00 07 00 02 00 03 00 00     ................     272
00 02 00 0d 00 0e 00 00 00 17 48 65 6c 6c 6f 20     ..........Hello      288
2e 64 65 62 75 67 20 64 69 72 65 63 74 69 76 65     .debug directive     304
21                                                  !                    320

 

 

; TestCanDebug.j

; Generated by ClassFileAnalyzer (Can)
; Analyzer and Disassembler for Java class files
; (Jasmin syntax 2, http://jasmin.sourceforge.net)
;
; ClassFileAnalyzer, version 0.7.0 


.bytecode 50.0
.source TestCanDebug.java
.class public TestCanDebug
.super java/lang/Object
.debug "Hello .debug directive!"

.method public <init>()V
  .limit stack 1
  .limit locals 1
  .line 3
  0: aload_0
  1: invokespecial java/lang/Object/<init>()V
  4: return
.end method

.method public static main([Ljava/lang/String;)V
  .limit stack 0
  .limit locals 1
  .line 7
  0: return
.end method