Debugging plugin which runs in Sandbox but hangs IDEA if deployed
I'm updating our IDEA 7.0 plugin. I now have it running nicely as a project. But when I create a deployable version and put unzip directory in IDEA 8s plugins dir, it physically hangs IDEA on startup.
Any suggestions on what I am doing wrong or best way to debug?
Regards,
MArkee
Please sign in to leave a comment.
Hello mark,
Take a thread dump of IDEA as described in http://jetbrains.net/devnet/docs/DOC-260
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Stacktrace is telling me itcan't connect to process. Is there any logging option in IDEA I can enable?
Regards,
MArkee
I finally had a day free to take it apart. IDEA was hanging with my plugin because I was attempting to read a Boolean, when the value was actually a String.
MArk
fileCount = entry.getAttribute("count").getIntValue();
Attribute value=entry.getAttribute("checkForUpdates");
/** if(value!=null) //hangs IDEA as it was actually a string string
settings.checkForUpdates=value.getBooleanValue();
/**/
if(value!=null){ //crashed code as string
if(value.equals("true"))
settings.checkForUpdates=true;
else
settings.checkForUpdates=false;
}
value=entry.getAttribute("versionTested");
if(value!=null)
settings.versionTested=value.getValue();
} catch (Exception e) {
e.printStackTrace();
}