Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ptp-dev] Project Debug setup

I've made sure that
'Register process 0 by default' is selected
'Stop at main() on startup' is selected
'Open the associated perspective when the  application suspends' is 'Always'

Still get the problem. Whats weird, is if I close all the files I have open,
and then just launch the project, it will open two hello.c files. One with
the correct path, and the other with the incorrect path. The incorrect path
hello.c just says 'File Debug/hello.c does not exist', which is true. When I
try to 'step into', it will try to re-open the incorrect hello.c if I had
closed it. 

My Breakpoints also seem to be ignored for some reason when I use my
'non-managed make' hello world project. Not sure if that's at all related. 

Brian

-----Original Message-----
From: ptp-dev-bounces@xxxxxxxxxxx [mailto:ptp-dev-bounces@xxxxxxxxxxx] On
Behalf Of Greg Watson
Sent: Tuesday, September 19, 2006 12:08 PM
To: Parallel Tools Platform general developers
Subject: Re: [ptp-dev] Project Debug setup

One other thing.  In Window->Preference->Run/Debug->Parallel  
Application make sure 'Open the associated perspective when the  
application suspends' is either 'Always' or 'Prompt'.

Greg

On Sep 19, 2006, at 9:57 AM, Greg Watson wrote:

> A couple of other things to check. Make sure that 'Stop at main()  
> on startup' is selected in the parallel application launch  
> configuration. Also, in Window->Preferences->PTP->Debug, check that  
> 'Register process 0 by default' is selected.
>
> The Eclipse Debug infrastructure will only switch perspective when  
> a breakpoint is hit and the target process is being displayed in  
> the standard Debug view. The above settings should ensure this is  
> the case.
>
> Greg
>
> On Sep 19, 2006, at 9:24 AM, Clement Chu wrote:
>
>> Hi Brian,
>>
>> Can eclipse open hello.c in source editor if running with CDT?  
>> Please check the project properties. Maybe some settings are not  
>> right, so eclipse will look for hello.c in Debug folder.
>>
>> Regards,
>> Clement
>>
>> Henerey, Brian wrote:
>>>
>>> Both of these were set correctly.
>>>
>>> -------------------------------------------------------------------- 
>>> ----
>>>
>>> *From:* ptp-dev-bounces@xxxxxxxxxxx [mailto:ptp-dev- 
>>> bounces@xxxxxxxxxxx] *On Behalf Of *Greg Watson
>>> *Sent:* Monday, September 18, 2006 11:26 PM
>>> *To:* Parallel Tools Platform general developers
>>> *Subject:* Re: [ptp-dev] Project Debug setup
>>>
>>> Brian,
>>>
>>> Open Window->Preferences then select Perspectives from the Run/ 
>>> Debug item. Select Parallel Application from the Application  
>>> Types. Check that the Debug drop down menu is set to PTP Debug  
>>> and the Run drop down menu is set to PTP Runtime.
>>>
>>> Greg
>>>
>>> On Sep 18, 2006, at 2:26 PM, Henerey, Brian wrote:
>>>
>>>
>>>
>>> I am creating a Managed Make C project to run a parallel Hello  
>>> World test job and have a problem.
>>>
>>> When I am in the C/C++ perspective, I right-click on the project  
>>> folder, and select Debug As, Debug. I make a new Parallel  
>>> Application, give it a name, and select the application to be  
>>> Debug/testPhello. This is the folder where the debug executable  
>>> is created. I set the number of processes to 2, and select SDM to  
>>> be the debugger. When I click Debug, it saves my settings,  
>>> initializes the debugger, and puts me back into the C/C++  
>>> perspective.
>>>
>>> Here I notice that a new hello.c file is opened in the editor.  
>>> When I click on it's tab, it says: /testPhello/Debug/hello.c does  
>>> not exist. I don't know why it's looking inside the Debug folder  
>>> for the source file. I tried putting a copy of hello.c inside the  
>>> Debug folder but this did not change things.
>>>
>>> If I 'Run' the job, everything works as expected. I can see what  
>>> I've done differently between Run and Debug. Any suggestions?  
>>> I've built and rebuild new projects trying to eliminate my  
>>> mistake, but I am clearly doing something wrong.
>>>
>>> Thanks in advance,
>>>
>>> Brian
>>>
>>> PS. I can get around this with a non-managed Makefile, but I'm  
>>> hoping to understand/use the Eclipse Build features.
>>>
>>> _______________________________________________
>>>
>>> ptp-dev mailing list
>>>
>>> ptp-dev@xxxxxxxxxxx <mailto:ptp-dev@xxxxxxxxxxx>
>>>
>>> https://dev.eclipse.org/mailman/listinfo/ptp-dev
>>>
>>> -------------------------------------------------------------------- 
>>> ----
>>>
>>> _______________________________________________
>>> ptp-dev mailing list
>>> ptp-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/ptp-dev
>>>
>>
>>
>> _______________________________________________
>> ptp-dev mailing list
>> ptp-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/ptp-dev
>
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


Back to the top