Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » enable and set debug options
enable and set debug options [message #22576] Thu, 01 May 2008 15:36 Go to next message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
I would like to debug certain behavior, starting with completion.
I found conditional debugging statements in the DLTK source code referring
to these constants:

public static final boolean DEBUG = Boolean.valueOf(
Platform.getDebugOption("org.eclipse.dltk.core/debug")).booleanValue();
//$NON-NLS-1$

public static final boolean DEBUG_COMPLETION = Boolean.valueOf(
Platform.getDebugOption("org.eclipse.dltk.core/debugCompletion ")).booleanValue();
//$NON-NLS-1$

I googled Eclipse getDebugOption and found this page:

http://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_debug_ tracing_facility%3F

I created a .options file, and put it into C:\java\eclipse, and it has this
contents:

org.eclipse.dltk.core/debug=true
org.eclipse.dltk.core/debugCompletion=true

I invoked Eclipse with the -debug flag and it said this:

Debug options:
file:/C:/Java/eclipse/.options loaded

When I attempt to debug the line which sets DEBUG_SELECTION, it didn't step
into getDebugOptions, it simply stepped into Boolean.valueOf() and said the
string value was null.

So, how do I set debug options?

Thanks,
Chuck
Re: enable and set debug options [message #22619 is a reply to message #22576] Thu, 01 May 2008 21:36 Go to previous messageGo to next message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
I'm not sure why it wasn't working before - but I believe it is working now.

Chuck

"Chuck Doucette" <cdoucette@vaultus.com> wrote in message
news:fvco3p$nai$1@build.eclipse.org...
>I would like to debug certain behavior, starting with completion.
> I found conditional debugging statements in the DLTK source code referring
> to these constants:
>
> public static final boolean DEBUG = Boolean.valueOf(
> Platform.getDebugOption("org.eclipse.dltk.core/debug")).booleanValue();
> //$NON-NLS-1$
>
> public static final boolean DEBUG_COMPLETION = Boolean.valueOf(
> Platform.getDebugOption("org.eclipse.dltk.core/debugCompletion ")).booleanValue();
> //$NON-NLS-1$
>
> I googled Eclipse getDebugOption and found this page:
>
> http://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_debug_ tracing_facility%3F
>
> I created a .options file, and put it into C:\java\eclipse, and it has
> this contents:
>
> org.eclipse.dltk.core/debug=true
> org.eclipse.dltk.core/debugCompletion=true
>
> I invoked Eclipse with the -debug flag and it said this:
>
> Debug options:
> file:/C:/Java/eclipse/.options loaded
>
> When I attempt to debug the line which sets DEBUG_SELECTION, it didn't
> step into getDebugOptions, it simply stepped into Boolean.valueOf() and
> said the string value was null.
>
> So, how do I set debug options?
>
> Thanks,
> Chuck
>
>
Re: enable and set debug options [message #22796 is a reply to message #22619] Sun, 04 May 2008 12:26 Go to previous messageGo to next message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 72
Registered: July 2009
Member
Hi Chuck,

You also could specify this options from "Run Configurations" dialog -> Then select your launch shortcut -> Tracing tab
and set required options.

Best regards,
Andrei Sobolev.
> I'm not sure why it wasn't working before - but I believe it is working now.
>
> Chuck
>
> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
> news:fvco3p$nai$1@build.eclipse.org...
>> I would like to debug certain behavior, starting with completion.
>> I found conditional debugging statements in the DLTK source code referring
>> to these constants:
>>
>> public static final boolean DEBUG = Boolean.valueOf(
>> Platform.getDebugOption("org.eclipse.dltk.core/debug")).booleanValue();
>> //$NON-NLS-1$
>>
>> public static final boolean DEBUG_COMPLETION = Boolean.valueOf(
>> Platform.getDebugOption("org.eclipse.dltk.core/debugCompletion ")).booleanValue();
>> //$NON-NLS-1$
>>
>> I googled Eclipse getDebugOption and found this page:
>>
>> http://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_debug_ tracing_facility%3F
>>
>> I created a .options file, and put it into C:\java\eclipse, and it has
>> this contents:
>>
>> org.eclipse.dltk.core/debug=true
>> org.eclipse.dltk.core/debugCompletion=true
>>
>> I invoked Eclipse with the -debug flag and it said this:
>>
>> Debug options:
>> file:/C:/Java/eclipse/.options loaded
>>
>> When I attempt to debug the line which sets DEBUG_SELECTION, it didn't
>> step into getDebugOptions, it simply stepped into Boolean.valueOf() and
>> said the string value was null.
>>
>> So, how do I set debug options?
>>
>> Thanks,
>> Chuck
>>
>>
>
>
Re: enable and set debug options [message #22837 is a reply to message #22796] Sun, 04 May 2008 15:35 Go to previous message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
That didn't work for me since none of the DLTK plugins were listed in the
tracing tab (and therefore couldn't be selected and enabled).

Chuck

"Andrei Sobolev" <haiodo@xored.com> wrote in message
news:fvka1e$8td$2@build.eclipse.org...
> Hi Chuck,
>
> You also could specify this options from "Run Configurations" dialog ->
> Then select your launch shortcut -> Tracing tab
> and set required options.
>
> Best regards,
> Andrei Sobolev.
>> I'm not sure why it wasn't working before - but I believe it is working
>> now.
>>
>> Chuck
>>
>> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
>> news:fvco3p$nai$1@build.eclipse.org...
>>> I would like to debug certain behavior, starting with completion.
>>> I found conditional debugging statements in the DLTK source code
>>> referring
>>> to these constants:
>>>
>>> public static final boolean DEBUG = Boolean.valueOf(
>>> Platform.getDebugOption("org.eclipse.dltk.core/debug")).booleanValue();
>>> //$NON-NLS-1$
>>>
>>> public static final boolean DEBUG_COMPLETION = Boolean.valueOf(
>>> Platform.getDebugOption("org.eclipse.dltk.core/debugCompletion ")).booleanValue();
>>> //$NON-NLS-1$
>>>
>>> I googled Eclipse getDebugOption and found this page:
>>>
>>> http://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_debug_ tracing_facility%3F
>>>
>>> I created a .options file, and put it into C:\java\eclipse, and it has
>>> this contents:
>>>
>>> org.eclipse.dltk.core/debug=true
>>> org.eclipse.dltk.core/debugCompletion=true
>>>
>>> I invoked Eclipse with the -debug flag and it said this:
>>>
>>> Debug options:
>>> file:/C:/Java/eclipse/.options loaded
>>>
>>> When I attempt to debug the line which sets DEBUG_SELECTION, it didn't
>>> step into getDebugOptions, it simply stepped into Boolean.valueOf() and
>>> said the string value was null.
>>>
>>> So, how do I set debug options?
>>>
>>> Thanks,
>>> Chuck
>>>
>>>
>>
>>
Previous Topic:Expanding dltk.tcl for java/ctl (jacl)
Next Topic:DLTK javadoc - do it yourself
Goto Forum:
  


Current Time: Sun Apr 21 19:10:56 GMT 2024

Powered by FUDForum. Page generated in 0.03686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top