Sublime Forum

Stop Plugin Stuck in Infinite Loop

#1

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?

0 Likes

#2

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.

0 Likes

#3

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.

0 Likes