Home Download Buy Blog Forum Support

Stop Plugin Stuck in Infinite Loop

Stop Plugin Stuck in Infinite Loop

Postby ajpalkovic on Sun Jun 19, 2011 7:51 am

I have a nasty bug in a plugin I'm working on. It keeps getting stuck in an infinite loop. The infinite loop keeps any prints from being displayed. Is there a way to kill the plugin from within sublime besides just using task manager?
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Stop Plugin Stuck in Infinite Loop

Postby jps on Sun Jun 19, 2011 8:14 am

There isn't - plugins aren't isolated at all.

If you run Sublime Text with the --debug argument, then print statements will be sent to stdout (Linux and OSX), or via OutputDebugString on Windows, which can be viewed with DebugView.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Stop Plugin Stuck in Infinite Loop

Postby ajpalkovic on Sun Jun 19, 2011 10:17 pm

Yea, I understand, I can imagine it'd be a ton of work to make that happen cuz the plugin couldn't run in the event thread then.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests