IntelliJ Debugger Stop Working - Android

Hello,

I have been working on my Android application all afternoon.  All of the sudden, the debugging feature stop working.  None of my breakpoints are getting hit.  Have anyone else ran into this problem.

4 comments
Comment actions Permalink

Yes! Me! Did you fix it?

Jamie

I get this:

I'm on OSX 10.6.4,

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
IntelliJ 95.429
Android Plugin 1.0.2



08-17 19:12:51.726: DEBUG/AndroidRuntime(324): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
08-17 19:12:51.726: DEBUG/AndroidRuntime(324): CheckJNI is ON
08-17 19:12:51.956: DEBUG/AndroidRuntime(324): --- registering native functions ---
08-17 19:12:52.906: INFO/ActivityManager(66): Force stopping package com.example.sudoku uid=10032
08-17 19:12:52.906: INFO/ActivityManager(66): Starting activity: Intent { flg=0x10000000 cmp=com.example.sudoku/.Sudoku }
08-17 19:12:53.056: DEBUG/AndroidRuntime(324): Shutting down VM
08-17 19:12:53.066: DEBUG/dalvikvm(324): Debugger has detached; object registry had 1 entries
08-17 19:12:53.087: INFO/AndroidRuntime(324): NOTE: attach of thread 'Binder Thread #3' failed
08-17 19:12:53.236: INFO/ActivityManager(66): Start proc com.example.sudoku for activity com.example.sudoku/.Sudoku: pid=331 uid=10032 gids={1015}
08-17 19:12:54.446: WARN/ActivityThread(331): Application com.example.sudoku is waiting for the debugger on port 8100...
08-17 19:12:54.536: INFO/System.out(331): Sending WAIT chunk
08-17 19:12:54.657: INFO/dalvikvm(331): Debugger is active
08-17 19:12:54.747: INFO/System.out(331): Debugger has connected
08-17 19:12:54.747: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:54.956: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:55.156: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:55.356: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:55.556: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:55.777: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:55.976: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:56.176: INFO/System.out(331): waiting for debugger to settle...
08-17 19:12:56.286: INFO/ARMAssembler(66): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x2b8f60:0x2b901c] in 5123000 ns
08-17 19:12:56.386: INFO/System.out(331): debugger has settled (1366)
08-17 19:12:56.426: INFO/ARMAssembler(66): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x2b9568:0x2b9730] in 2478000 ns
08-17 19:12:59.356: INFO/ActivityManager(66): Displayed activity com.example.sudoku/.Sudoku: 6173 ms (total 6173 ms)
08-17 19:12:59.537: INFO/ARMAssembler(66): generated scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at [0x3162e0:0x3163ec] in 710000 ns
08-17 19:13:05.326: DEBUG/dalvikvm(169): GC_EXPLICIT freed 1256 objects / 67536 bytes in 234ms
08-17 19:13:23.419: WARN/WindowManager(66): Key dispatching timed out sending to com.example.sudoku/com.example.sudoku.Sudoku
08-17 19:13:23.419: WARN/WindowManager(66): Previous dispatch state: null
08-17 19:13:23.436: WARN/WindowManager(66): Current dispatch state: {{null to Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false} @ 1282097603432 lw=Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false} lb=android.os.BinderProxy@450b8d18 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false}}}
08-17 19:13:23.436: WARN/WindowManager(66): Continuing to wait for key to be dispatched
08-17 19:13:28.442: WARN/WindowManager(66): Key dispatching timed out sending to com.example.sudoku/com.example.sudoku.Sudoku
08-17 19:13:28.442: WARN/WindowManager(66): Previous dispatch state: null
08-17 19:13:28.446: WARN/WindowManager(66): Current dispatch state: {{null to Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false} @ 1282097608447 lw=Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false} lb=android.os.BinderProxy@450b8d18 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false}}}
08-17 19:13:28.446: WARN/WindowManager(66): Continuing to wait for key to be dispatched
08-17 19:13:33.455: WARN/WindowManager(66): Key dispatching timed out sending to com.example.sudoku/com.example.sudoku.Sudoku
08-17 19:13:33.456: WARN/WindowManager(66): Previous dispatch state: null
08-17 19:13:33.456: WARN/WindowManager(66): Current dispatch state: {{null to Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false} @ 1282097613459 lw=Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false} lb=android.os.BinderProxy@450b8d18 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{44f9cec8 com.example.sudoku/com.example.sudoku.Sudoku paused=false}}}
08-17 19:13:33.456: WARN/WindowManager(66): Continuing to wait for key to be dispatched

0
Comment actions Permalink

The problem might be the Ruby plugin. When I disabled it, I can debug. Enabled, I got this stack when I started debugging:

java.lang.UnsupportedOperationException
at com.sun.tools.jdi.ReferenceTypeImpl.sourceDebugExtension(ReferenceTypeImpl.java:769)
at org.jetbrains.plugins.ruby.jruby.debug.JRubyPositionManager.getPath(JRubyPositionManager.java:141)
at org.jetbrains.plugins.ruby.jruby.debug.JRubyPositionManager.getPsiFileByLocation(JRubyPositionManager.java:156)
at org.jetbrains.plugins.ruby.jruby.debug.JRubyPositionManager.getSourcePosition(JRubyPositionManager.java:51)
at com.intellij.debugger.engine.CompoundPositionManager.getSourcePosition(CompoundPositionManager.java:51)
at com.intellij.debugger.engine.ContextUtil.getSourcePosition(ContextUtil.java:63)
at com.intellij.debugger.impl.DebuggerSession$MyDebugProcessListener$2.compute(DebuggerSession.java:462)
at com.intellij.debugger.impl.DebuggerSession$MyDebugProcessListener$2.compute(DebuggerSession.java:461)
at com.intellij.psi.impl.PsiDocumentManagerImpl$3.run(PsiDocumentManagerImpl.java:298)
at com.intellij.psi.impl.PsiDocumentManagerImpl$4.run(PsiDocumentManagerImpl.java:321)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:697)
at com.intellij.psi.impl.PsiDocumentManagerImpl.commitAndRunReadAction(PsiDocumentManagerImpl.java:317)
at com.intellij.psi.impl.PsiDocumentManagerImpl.commitAndRunReadAction(PsiDocumentManagerImpl.java:296)
at com.intellij.debugger.impl.DebuggerSession$MyDebugProcessListener.paused(DebuggerSession.java:460)
at com.intellij.debugger.engine.DebugProcessAdapterImpl.paused(DebugProcessAdapterImpl.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:87)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:33)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:64)
at $Proxy106.paused(Unknown Source)
at com.intellij.debugger.engine.SuspendManagerImpl.notifyPaused(SuspendManagerImpl.java:306)
at com.intellij.debugger.engine.SuspendManagerImpl.b(SuspendManagerImpl.java:299)
at com.intellij.debugger.engine.SuspendManagerImpl.voteSuspend(SuspendManagerImpl.java:318)
at com.intellij.debugger.engine.DebugProcessEvents$1.contextAction(DebugProcessEvents.java:412)
at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:62)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:44)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:148)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:36)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:135)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:331)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)

0
Comment actions Permalink

I had the same problem.  Disabling the Ruby plug-in solved it.

0

Please sign in to leave a comment.