Eclipse logcat debugging

后端 未结 3 1495
Happy的楠姐
Happy的楠姐 2020-11-28 16:54

I have a beginner question, I want to debug my app and i don\'t know how to use the Logcat properly.

Right now, I am getting this error and i don\'t know what it mea

3条回答
  •  情深已故
    2020-11-28 17:31

    you can try this tips to use logcat..

        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    
        System.out.println("1. Before Declare");
    
        textView = (TextView) findViewById(R.id.textView);
    
        System.out.println("2. After Declare"); 
    
    }
    

    See result on logcat, then you can see your step..

提交回复
热议问题