halo / macosvpn

:wrench: Create macOS VPNs programmatically (L2TP & Cisco)
Other
442 stars 72 forks source link

Debug the project #29

Closed laxmansahni closed 7 years ago

laxmansahni commented 7 years ago

Hi,

We run executable from command-line to create VPN. We would like to debug the executable. Please tell how to debug in Xcode.

halo commented 7 years ago

Hi @laxmansahni

Could you elaborate a little bit what you mean by debug? Do you mean breakpoints? Do you mean testing? Do you mean static code analysis? Do you mean debugging output?

As for breakpoints or crash reports, have a look at this comment which shows how the settings should look like when debugging.

laxmansahni commented 7 years ago

We want to add breakpoints. Please suggest how to hit breakpoints in Xcode

laxmansahni commented 7 years ago

I ran Xcode as sudo and am able to debug.

sudo /Applications/Xcode.app/Contents/MacOS/Xcode