I got the maven project, this time to use IdeaJ to debug code.

Just open the project with IdeaJ.

Then for JFinal, the start point is the onStart method in project that extends JFinalConfig class.

So, in IdeaJ, add a run configuration profile, in the command part, fill tomcat:run, so this is enough.

image.png


Just start debugging, and the break point is hit.

OK, next is to go inside the code runtime.


I wanted to change the template display not showing Chinese articles, so, first debug to the return list,

image.png

in Java, there is get/set for fields, so, in the template where debugger cannot get into, when looping the items, item.folder_id==281, the current folder should not be 281, continue.

Should solve the display now.

image.png

没有登录不能评论