Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Remote Debugging(Not able to see output of remote debugging in console)
Remote Debugging [message #495822] Fri, 06 November 2009 09:31 Go to next message
suprit  is currently offline suprit
Messages: 15
Registered: July 2009
Junior Member
Hi,

We have migrated our IDE from eclipse 3.5 and dltk R1.0
to eclipse 3.5 and dltk S2.0.

In our IDE,when I debug local scripts,output of debugging is shown in console.
But when I do remote debugging,it is successfully updating all the view,but not showing output in console.

But in case of dltk R1.0 version it is showing output in console for both the cases.

Is there any additional implementation or modification in dltk S2.0 ?

Please Help.

regards,
Suprit
Re: Remote Debugging [message #496162 is a reply to message #495822] Mon, 09 November 2009 08:56 Go to previous messageGo to next message
suprit  is currently offline suprit
Messages: 15
Registered: July 2009
Junior Member
Hi,
I have debugged the above mentioned issue and found that in method "acceptLaunch" of source "org.eclipse.dltk.debug.ui.DebugConsoleManager" , they have added a check "launch.getProcesses().length != 0" as shown below :
(in dltk 2.0)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
protected boolean acceptLaunch(ILaunch launch) {
...

// FIXME test for remote session? return launch.getProcesses().length != 0 && DLTKDebugLaunchConstants.isDebugConsole(launch);
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

But in Remote debugging,the IDE doesn't launch any process and starts listening on a pre-defined port,hence method "acceptLaunch" always returns "false" to "launchesChanged(ILaunch[] launches)" method because of which no console is added in the target.Hence no output is shown in the console.

In dltk 1.0,it was as follows :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
protected boolean acceptLaunch(ILaunch launch) {
....

return DLTKDebugLaunchConstants.isDebugConsole(launch);
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Can you provide the fix in the stable version of DLTK 2.0?

regards,
Suprit
Re: Remote Debugging [message #496214 is a reply to message #496162] Mon, 09 November 2009 11:37 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi Suprit,

I will fix tonight.
And the next stable version (M3) is scheduled on this week.

Regards,
Alex


suprit wrote:
> Hi,
> I have debugged the above mentioned issue and found that in method
> "acceptLaunch" of source "org.eclipse.dltk.debug.ui.DebugConsoleManager"
> , they have added a check "launch.getProcesses().length != 0" as shown
> below :
> (in dltk 2.0)
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> protected boolean acceptLaunch(ILaunch launch) {
> ...
>
> // FIXME test for remote session? return
> launch.getProcesses().length != 0 &&
> DLTKDebugLaunchConstants.isDebugConsole(launch);
> }
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> But in Remote debugging,the IDE doesn't launch any process and starts
> listening on a pre-defined port,hence method "acceptLaunch" always
> returns "false" to "launchesChanged(ILaunch[] launches)" method because
> of which no console is added in the target.Hence no output is shown in
> the console.
>
> In dltk 1.0,it was as follows :
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> protected boolean acceptLaunch(ILaunch launch) {
> ....
>
> return DLTKDebugLaunchConstants.isDebugConsole(launch);
> }
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Can you provide the fix in the stable version of DLTK 2.0?
>
> regards,
> Suprit
Re: Remote Debugging [message #496473 is a reply to message #496214] Tue, 10 November 2009 09:04 Go to previous message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi Suprit,

This issue should be fixed in
http://download.eclipse.org/technology/dltk/downloads/drops/ R2.0/I-I200911091822-200911091822/

Could you please check if it works for you.

Regards,
Alex


Alex Panchenko wrote:
> Hi Suprit,
>
> I will fix tonight.
> And the next stable version (M3) is scheduled on this week.
>
> Regards,
> Alex
>
>
> suprit wrote:
>> Hi,
>> I have debugged the above mentioned issue and found that in method
>> "acceptLaunch" of source "org.eclipse.dltk.debug.ui.DebugConsoleManager"
>> , they have added a check "launch.getProcesses().length != 0" as shown
>> below :
>> (in dltk 2.0)
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> protected boolean acceptLaunch(ILaunch launch) {
>> ...
>>
>> // FIXME test for remote session? return
>> launch.getProcesses().length != 0 &&
>> DLTKDebugLaunchConstants.isDebugConsole(launch);
>> }
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> But in Remote debugging,the IDE doesn't launch any process and starts
>> listening on a pre-defined port,hence method "acceptLaunch" always
>> returns "false" to "launchesChanged(ILaunch[] launches)" method because
>> of which no console is added in the target.Hence no output is shown in
>> the console.
>>
>> In dltk 1.0,it was as follows :
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> protected boolean acceptLaunch(ILaunch launch) {
>> ....
>>
>> return DLTKDebugLaunchConstants.isDebugConsole(launch);
>> }
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Can you provide the fix in the stable version of DLTK 2.0?
>>
>> regards,
>> Suprit
Previous Topic:Debugging Ruby
Next Topic:[BUILD] S-2.0M3-200911101155
Goto Forum:
  


Current Time: Sat Sep 20 18:21:29 GMT 2014

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

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