Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Adding Debugging to PTP code

Use Plugin#isDebugging() and Platform#getDebuggingOption(). See the DebugUtil class in the org.eclipse.ptp.remote.server.core plugin for an example.

Regards,
Greg

On Jul 15, 2013, at 4:15 PM, Brian Watt <bwatt@xxxxxxxxxxxxx> wrote:

> What technique should I be using to add debugging code that stays in the source but is disabled until needed? Can you point me to a sample in PTP which shows the recommended approach. My old tried and true technique was to have a private static final boolean DEBUG, and code surrounded by if (DEBUG), but that's pretty old-school. Thanks, Bri
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top