How to insert a log in LogCat that when I click on it jumps to its line in code?

前端 未结 7 1724
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 10:16

I want to insert a log in LogCat that when I click on it jumps to its line like some error logs that are generated by system.

Is it possible?

7条回答
  •  有刺的猬
    2020-12-15 10:53

    To answer the question in a simple way:

    respecter cette règle :

    {FileName}.{ext}:{LigneNumber}
    
    e.g. MainActivity.java:10
    

    which gives a sample as below

    Log.d(TAG, "onResume: MainActivity.java:10");
    

    I hope this will help you

提交回复
热议问题