Plugin debugging plugins & ProcessCanceledException

Hi,

is there a way to suppress this ProcessCanceledException when debugging a
plugin? It's driving me nuts because every time I hit a breakpoint I cannot step
through my code because every other call to PSI & Co methods seems to throw this
exception which makes debugging a pain.

Can this be turned off or avoided in some way?

Sascha

6 comments

I would like to be able to disable this as well.

Sascha Weinreuter wrote:

Hi,

is there a way to suppress this ProcessCanceledException when debugging a
plugin? It's driving me nuts because every time I hit a breakpoint I cannot step
through my code because every other call to PSI & Co methods seems to throw this
exception which makes debugging a pain.

Can this be turned off or avoided in some way?

Sascha

0

Hello Sascha,

SW> is there a way to suppress this ProcessCanceledException when
SW> debugging a plugin? It's driving me nuts because every time I hit a
SW> breakpoint I cannot step through my code because every other call to
SW> PSI & Co methods seems to throw this exception which makes debugging
SW> a pain.
SW>
SW> Can this be turned off or avoided in some way?

Please file a JIRA request. We're usually avoiding it by commenting out the
line where the exception is thrown, but obviously this is not an option for
you. :)

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Dmitry Jemerov (JetBrains) wrote:

We're usually avoiding it by commenting out
the line where the exception is thrown, but obviously this is not an
option for you. :)


Haha, that's not fair :)

http://www.jetbrains.net/jira/browse/IDEA-6149

Sascha

0

+100

Sascha Weinreuter schrieb:

Dmitry Jemerov (JetBrains) wrote:

>>We're usually avoiding it by commenting out
>>the line where the exception is thrown, but obviously this is not an
>>option for you. :)


Haha, that's not fair :)

http://www.jetbrains.net/jira/browse/IDEA-6149

Sascha

0

Or you can paste following magic words into the debugger evaluation window:

((ProgressManagerImpl)ProgressManager.getInstance()).myThreadToIndicatorMap.clear()

This'll disable throwing ProcessCanceledException for a while.

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Dmitry Jemerov (JetBrains)" <yole@jetbrains.com> wrote in message
news:83ca25fd254c118c7cf0ecfaa75d0@news.intellij.net...

Hello Sascha,

>

SW> is there a way to suppress this ProcessCanceledException when
SW> debugging a plugin? It's driving me nuts because every time I hit a
SW> breakpoint I cannot step through my code because every other call to
SW> PSI & Co methods seems to throw this exception which makes debugging
SW> a pain.
SW> SW> Can this be turned off or avoided in some way?

>

Please file a JIRA request. We're usually avoiding it by commenting out
the line where the exception is thrown, but obviously this is not an
option for you. :)

>

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

>



0

Alexey Kudravtsev (JetBrains) wrote:

((ProgressManagerImpl)ProgressManager.getInstance()).myThreadToIndicatorMap.clear()


Thanks for the hint, but it actually is
((ProgressManagerImpl)ProgressManager.getInstance()).b.clear() ;)

Sascha

0

Please sign in to leave a comment.