Login
Login

Debug

Home 21090308 Forums Programming Java Debug

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1821
    kevinsun
    Member

    When some testcase fails, I’d like to investigate what happens. The only way I know is to keep the main method to help debug, using like “step-in” features. I don’t know other ways around. Is there any way to get rid of main method and still debug?

    Thank you.

    #1963
    haksunli
    Keymaster

    You can put a breakpoint somewhere in the test case you want to investigate. Right click on the test file and hit ‘Debug File’. It will stop on the breakpoint then you can step-in as usual.

    #1964
    kevin
    Member

    Thank you. It works really well.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.