Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-user] Debugger cannot find the source path

Hi everybody

I am trying to debug my application using the parallel debugger. My application uses external libraries and I would like to dig through their source files while I am debugging. My application is in the directory:

/home/miguel/ex1/

Whereas the library source is in 

/home/miguel/libmesh

but the binaries are installed in /usr/local/

I included all the paths, libraries, etc in the project properties and I am able to build the project, run it and debug it in serial, I can do F5 and step in the library source files in the serial debugging. However, I can't do so when I debug it in parallel using PTP. The debugger can't find the source files. When I add them to the source path, I have the same problem. I add them the using "File system directory" and specifying the /home/miguel/libmesh directory. The errors that I get are these:

Error logged from Debug Core: 
Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".

The "Exception Stack Trace" for these errors are:

java.lang.NullPointerException
at org.eclipse.ptp.internal.debug.core.sourcelookup.AbsolutePathSourceContainer.findSourceElementByFile(AbsolutePathSourceContainer.java:107)
at org.eclipse.ptp.internal.debug.core.sourcelookup.AbsolutePathSourceContainer.findSourceElements(AbsolutePathSourceContainer.java:51)
at org.eclipse.ptp.internal.debug.core.sourcelookup.PSourceLookupParticipant.findSourceElements(PSourceLookupParticipant.java:89)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:141)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:490)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:758)
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:148)
at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:983)
at org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceLookupJob.run(StackFrameSourceDisplayAdapter.java:111)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Please let me know if you need more details about my configuration. Thanks in advance.

Miguel

--
Miguel Angel Salazar de Troya
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
salaza11@xxxxxxxxxxxx


Back to the top