public int[] GetBreakpoints(string scriptPath)
{
if (scriptPath == null) return new int[0];
int hash = scriptPath.GetHashCode();
if (_breakpoints.ContainsKey(scriptPath))
return _breakpoints[scriptPath].ToArray();
else
{
int[] lines = new int[0];
try
{
lines = Array.ConvertAll(
User.GetString(string.Format("breakpointsSet:{0:X8}", hash), "").Split(','),
int.Parse);
} catch (Exception) { } // *munch*
_breakpoints.Add(scriptPath, new HashSet<int>(lines));
return lines;
}
}