Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeline.py 能不能加一个参数可以让debugger连接上后再让app继续运行 #195

Closed
smoothdvd opened this issue Oct 13, 2016 · 5 comments

Comments

@smoothdvd
Copy link

smoothdvd commented Oct 13, 2016

我现在是每次手动adb shell am set-debug-app -w packagename

@lomanyong
Copy link
Member

@smoothdvd 不能运行之后在IDE使用attach debugger吗?直接使用debugger来编译的话,freeline的功能是无法生效的。

@smoothdvd
Copy link
Author

smoothdvd commented Oct 14, 2016

@lomanyong 我的意思是能不能让freeline去执行adb shell am set-debug-app -w packagename,这样app就是一直等待直到debugger attach上之后才开始真正执行。运行之后在IDE使用attach debugge的话有些代码已经执行了。

@lomanyong
Copy link
Member

@smoothdvd 了解,也可以解决。还有,其实现在最简单实现的方法是,你可以在启动的时候加个Thread.sleep(5000);,也能够暂时解决你要的问题。

@smoothdvd
Copy link
Author

@lomanyong OK。这个问题不急。

@lomanyong
Copy link
Member

lomanyong commented Nov 10, 2016

@smoothdvd 全量编译启动的时候加入了wait for debugger的功能使用python freeline.py -f -w即可。增量的时候wait for debugger会在后面加入,目前也可以直接在AS中使用attach debugger

在0.8.2发布中加入.

aa5279aa pushed a commit to aa5279aa/freeline that referenced this issue Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants