Home Download Buy Blog Forum Support

Debugging / Compiling C

Debugging / Compiling C

Postby vertigoat on Sat Oct 13, 2012 2:04 am

I'm a Mac user and recently found this piece of software mostly because I was trying out new software, came across TextMate and that somehow lead me to ST2. I must say, this program is ALMOST amazing enough for me to replace Xcode with. There is one feature I'm looking for however, and I'm confident it's existent somewhere. I'd like some Debugging options. I'm used to Xcode where I attempt to build the file and if there are syntax errors etc, it highlights them and basically spells out what the issue is. Being a fairly novice programmer and college student, this feature saves me a ton of time.

I realize that ST2 is not an IDE and that Xcode is. I also realize that Xcode likely has many more features than I will ever need to use.

Suggestions?
vertigoat
 
Posts: 3
Joined: Sat Oct 13, 2012 1:56 am

Re: Debugging / Compiling C

Postby Watabou on Sat Oct 13, 2012 4:36 am

SublimeClang is just awesome for this. Each time you save, it will highlight any errors or warnings clang gives while running your program. You can get it via Package Control. If you don't have Package Control, get it here: http://wbond.net/sublime_packages/package_control

Package Control is basically an essential plugin for ST2 that manages your plugins for you and updating/adding/deleting plugins is super easy with Cmd+Shift+P. You can literally add new plugins in 5 seconds. Just add Sublime Clang by installing Package Control, pressing Cmd+Shift+P and then entering "inst", select "Install Package" and then type in SublimeClang and install that.

Alternatively, you can read this:
Sublime Clang: https://github.com/quarnster/SublimeClang/
Watabou
 
Posts: 11
Joined: Mon Aug 13, 2012 9:52 am

Re: Debugging / Compiling C

Postby vertigoat on Sun Oct 14, 2012 1:04 am

That's awesome! works flawlessly.


thank you.
vertigoat
 
Posts: 3
Joined: Sat Oct 13, 2012 1:56 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 16 guests