![]() But there is a small button above the variables – “Show Logical Structure”. If you are using a HashMap for example, you have to click through the physical entries and you are confronted with implementation details of a HashMap. If you want to see the values of a Map or a List in the variables view, it’s not always that easy with the default setting of eclipse. You can choose to suspend when your code-snippet gets true or when the value of your snippet changes. You can setup the conditions in the breakpoint-view or with the contextmenu on the blue breakpoint-marker next to your code (“Breakpoint Properties”). For example if you want to see the 13th run in a loop or you are debugging functionality in an abstract super class and you only want to see one concrete implementation. – Breakpoint View : Conditional BreakpointsĮxtreme useful if you are interested only in a special constellation of your application. Before starting your tomcat always ask yourself: Is there a way to check the behaviour with a unit test? But you can find tons of good material about good code design out there, from here I will focus on a few eclipse debugging tips, which you maybe don’t know or you have forgotten over the time. I see it very often, that people are clicking through large web-applications, filling out multiple forms, switching to different pages in the flow, just to check a calculation logic on the last page and after that implementing big parts of the logic in the debug view. □ But it must be said! Try to split up your complex logic into many isolated units and write Unit-Tests to check the correct behaviour of your code. And it justifies another post on this topic! – First Tip: Don’t debug too much!Ĭrazy statement to start a post about debugging. ![]() This makes it even more important to know all the handy features, that makes your life easier and helps you to safe some time. For a good reason! I guess that I spent about 1 hour per day debugging my applications. ![]() “n things about debugging” is a popular topic. You probably know some post of this kind.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |