java - Debugging ActiveJDBC with IntelliJ IDEA -
i new activejdbc. trying debug sample project.
the code want debug is:
public static void main(string[] args) { base.open(); person director = new person("stephen spielberg"); director.saveit(); //[break point here] director.add(new movie("saving private ryan", 1998)); director.add(new movie("jaws", 1982)); director.getall(movie.class).foreach(system.out::println); base.close(); }
the code compiles correctly , instrumentation executed (i believe) (have here).
the debugger launched , paused @ defined break-point.
i trying evaluate expression "person.count()" , expecting result 1.
but have following error in 'evaluate expression' window:
method threw 'org.javalite.activejdbc.initexception' exception.
failed determine model class name, sure models have been instrumented?
have look: https://unsee.cc/nipareto/
it possible recompiled models after instrumentation unintentionally. if instrument, make change model, , try run code, , ide detect change , recompile model, blowing away instrumentation.
ensure instrument before run code.
additionally, link provided: https://github.com/javalite/activeweb-simple not corresponding code. think using one: https://github.com/javalite/simple-example. if so, try running on command line according readme.
debugging models in activejdbc in idea daily:) also, recommend watch video on page: http://javalite.io/instrumentation because walk step step using idea.
update april 10 2017:
i recorded video show how instrument , debug activejdbc project: https://www.youtube.com/watch?v=2oeufch-s4m
Comments
Post a Comment