开发者

Eclipse : Can we make modifications on to the source code while debugging the Application inside Eclipse

开发者 https://www.devze.com 2023-04-10 09:49 出处:网络
Can we make modifications on to the source code whiledebugging the Application inside Eclipse Hi , Assume that i have this piece of code under Eclipse IDe

Can we make modifications on to the source code while debugging the Application inside Eclipse

Hi ,

Assume that i have this piece of code under Eclipse IDe

          public void kk()
        {
        try
        {
        int jj = 20;

        if(jj==20)
            throw new Exception();

        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
}

Assume that the code has entered inside the catch block due to the condition jj==20 , can开发者_StackOverflow中文版 we modify the code and bring the debug control back ??


Yes, its possible. But within specified limit.

As an example, it is possible to change code inside a method, but not inside a class.


Yes - control will return to the top of the method after you make your changes & save.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号