I'm now looking into the ability of adding, removing, enabling and disabling breakpoints in code from vim as well. Seeing as I've never really used AppleScript heavily before, it's a bit difficult. I did find some info from the folks at CodingMonkeys.de. They were investigating this for one of their programs.
Here's a script to add a breakpoint:
set fileName to <<filename>>
set lineNo to <<line number>>
tell application "Xcode"
tell front project
set theFile to file reference named fileName
set bp to make new file breakpoint with properties {line number:lineNo}
set file reference of bp to file reference named fileName
set enabled of bp to true
end tell
end tell
This does work, but if you call the script multiple times, multiple breakpoints are set. That needs to be taken care of before I'll fully integrate the script into Vim. I also need to figure out how to remove a breakpoint, as well as disable an already existing breakpoint.
More to come!