Debugging ASM-generated bytecode with JDB (or similar)
问题 So I have some malfuctioning code to debug where SOMEthing throws an NPE and I'd like to step through some generated methods in order to try and find out why. Except stepping blindly is not really useful. Thread-4[1] list Source file not found: Foo.java Thread-4[1] locals Local variable information not available. Compile with -g to generate variable information The code was generated, so of course there is no .java file available for JDB. And since I don't compile it with javac, there's no