Sublime Forum

Package Development Debugging

#1

Are there any best practices or tools when building Packages to enable debugging?

I feel like when I write code when building a package I need to basically use print statements to debug anything beyond a few simple routines.

Is there a better way to build and debug more complex packages? My packages revolve around manipulating the text either selected or a range based on the current position of the cursor. Not sure if that helps.

Thanks.

Stephen

0 Likes

#2

unfortunately, with no integrated debugger, using print statements is one of the easiest ways to go. It can also be useful to use a logging module, and then specify the verbosity level, so that you only spam the console etc. when you need to investigate why something is going wrong, and it saves having to have lots of conditional logic around the print statements etc.

0 Likes