billziss-gh / EnergyBar

Supercharge your Mac's Touch Bar.
GNU General Public License v3.0
749 stars 34 forks source link

Xcode debug #65

Open nbonamy opened 3 years ago

nbonamy commented 3 years ago

Hello,

I am going to be playing with EnergyBar and add new widgets and so on. Everything compiles successfully in Xcode 12 but when I run it from there nothing happens: Xcode directly switches to "Finished running EnergyBar". I even set a breakpoint in main.m which is not even reached.

What am I missing?

Thanks!

billziss-gh commented 3 years ago

I am not a Mac right now, but setting a breakpoint on main should work. Not getting a breakpoint suggests that the process is not even started.

Possible reasons for this:

nbonamy commented 3 years ago

I can compile successfully and can run the binary from Finder or Terminal but not from Xcode.

Was able to implement what I wanted but debugging would definitely help 😀