I never had debugging problems in Android until I moved to the current workspace. This happens in both Eclipse and IntelliJ. I used to have a problem when the phone freezes in the "Wait to connect debugger" dialog box. Somehow I fixed this, so the debugger at least joins my application.
Now I can set a breakpoint and stop the debugger at that point. After about 5-10 seconds, it turns off no matter what I do. I can read several variable values ββin memory before everything disappears. My colleague is able to debug the same application simply using Eclipse, and we were not able to figure out what was wrong or not between our workstations (except for me using IntelliJ). We can have different images for our laptops.
Any ideas? I had to use Log statements, but they are too slow compared to using the actual debugger. I tried using various USB cables, and that didn't really matter. I went through the debugger settings and nothing seemed unusual. Other Q / A on SO mentioned the application is quietly crashing, but I solve this because of its debugging for my colleague.
source share