I'd like to run an analysis on my code, I'm managing well to split large subs into smaller pieces but then wondering if its possible just to take the string of your sub, pass it to some "bytecode calculator" which will tell you the size of "bytecode"? I guess this way I can easily target large subs, or rather count the number of lines of my subs?
You are hitting the limit in debug mode because the debugger needs to inject many things to your code.
This only happens in huge subs and it is a good sign that you need to split those huge subs.
If you even think you need to do this your Subs are too large. Many small Subs are better than a few large ones - easier to understand and easier to maintain.
Historically Smalltalk is a famous example - a Smalltalk image contains thousands of methods, many being only two or three lines of code!