consulo / consulo-unity3d

Frameworks: Unity3D
Apache License 2.0
103 stars 10 forks source link

Editor attach and MacOS #13

Closed VISTALL closed 9 years ago

VISTALL commented 9 years ago

Hm. When i tried to attach i get exception:

null
java.lang.NullPointerException
    at org.mustbe.consulo.unity3d.run.Unity3dAttachRunner$1$1.connectionSuccess(Unity3dAttachRunner.java:98)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:88)
    at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
    at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:68)
    at com.sun.proxy.$Proxy90.connectionSuccess(Unknown Source)
    at org.mustbe.consulo.dotnet.debugger.DotNetDebugThread.run(DotNetDebugThread.java:184)
VISTALL commented 9 years ago

And debugger cant attach. Wtf?)

VISTALL commented 9 years ago

Strange - socket freezed while attach

jharrison63 commented 9 years ago

Same here , when trying to attach before I launch the game it gets frozen. Also, when I attempt to step through code I get the exception:

Only one step request allowed per thread: Only one step request allowed per thread
mono.debugger.request.DuplicateRequestException: Only one step request allowed per thread
    at mono.debugger.request.StepRequest.<init>(StepRequest.java:91)
    at mono.debugger.EventRequestManagerImpl.createStepRequest(EventRequestManagerImpl.java:76)
    at org.mustbe.consulo.dotnet.debugger.DotNetDebugProcess$3.process(DotNetDebugProcess.java:256)
    at org.mustbe.consulo.dotnet.debugger.DotNetDebugProcess$3.process(DotNetDebugProcess.java:251)
    at org.mustbe.consulo.dotnet.debugger.DotNetDebugThread.processCommands(DotNetDebugThread.java:344)
    at org.mustbe.consulo.dotnet.debugger.DotNetDebugThread.run(DotNetDebugThread.java:227)

However, if I don't step and just attach where I want to debug that spot it works. Great improvements and better then MonoDevelop already! :-D

VISTALL commented 9 years ago

About that trace - sometimes i reproduced it. It related to Mono .NET debugger (it already requested review - but hard for me find time)

VISTALL commented 9 years ago

Thanks anyway

VISTALL commented 9 years ago

About 'Step Requst'. I pushed possible fix for it

https://github.com/consulo/consulo-dotnet/commit/8fdac6062186d77d278771bf190051c1ef3be81f

After few hours -u can update plugin, and test

Thanks!

jharrison63 commented 9 years ago

I'll try this soon, thanks for getting this in so fast!

VISTALL commented 9 years ago

Any news?

jharrison63 commented 9 years ago

I will need to use it for a couple days more but so far I have not been able to reproduce that issue anymore.

VISTALL commented 9 years ago

Nice

VISTALL commented 9 years ago

Feedback about unity debugger(or consulo or c# impl) will be helpfull