Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error launching debugger
Error launching debugger [message #216520] Mon, 26 May 2008 12:46 Go to next message
Eclipse UserFriend
Originally posted by: trash.hotmail.com

Hello,

I have a project that build executables outside the project directory
and when I try to debug my executable, I get a error:

An internal error occurred during: 'Launching liwidentify".
java.lang.NullPointerException.

Linux64 / Eclipse 3.3.2

Thank you for your help.
Re: Error launching debugger [message #216527 is a reply to message #216520] Mon, 26 May 2008 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.net.net

exquisitus wrote:
> Hello,
>
> I have a project that build executables outside the project directory
> and when I try to debug my executable, I get a error:
>
> An internal error occurred during: 'Launching liwidentify".
> java.lang.NullPointerException.
>
> Linux64 / Eclipse 3.3.2
>
> Thank you for your help.

This happens to me from time to time. All I have to do is to re-set the
breakpoints, and just continue with debugging. It may work for you too.

CDT 4.0.2, Eclipse 3.3.1.1, Linux32.

--
Cheers,
Martin

UNDERSCOREmmiATcentrumDOTcz to email me.
Re: Error launching debugger [message #216535 is a reply to message #216527] Mon, 26 May 2008 13:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trash.hotmail.com

>> I have a project that build executables outside the project directory
>> and when I try to debug my executable, I get a error:
>>
>> An internal error occurred during: 'Launching liwidentify".
>> java.lang.NullPointerException.
>>
>> Linux64 / Eclipse 3.3.2
>>
>> Thank you for your help.
>
> This happens to me from time to time. All I have to do is to re-set the
> breakpoints, and just continue with debugging. It may work for you too.
>
> CDT 4.0.2, Eclipse 3.3.1.1, Linux32.

Good to know, but actually I don't have any breakpoints...
Re: Error launching debugger [message #216542 is a reply to message #216520] Mon, 26 May 2008 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

exquisitus wrote:
> Hello,
>
> I have a project that build executables outside the project directory
> and when I try to debug my executable, I get a error:
>
> An internal error occurred during: 'Launching liwidentify".
> java.lang.NullPointerException.
>
> Linux64 / Eclipse 3.3.2
>
> Thank you for your help.

Can you post a more details Excpetion back trace? It's impossible to
know what's going wrong without it. Have a look at the Error Log file:
under <workspace>/.metadata/.log. You also didn't say what version of
CDT you're using.

James
Re: Error launching debugger [message #216550 is a reply to message #216542] Mon, 26 May 2008 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trash.hotmail.com

James Blackburn wrote:
> exquisitus wrote:
>> Hello,
>>
>> I have a project that build executables outside the project directory
>> and when I try to debug my executable, I get a error:
>>
>> An internal error occurred during: 'Launching liwidentify".
>> java.lang.NullPointerException.
>>
>> Linux64 / Eclipse 3.3.2
>>
>> Thank you for your help.
>
> Can you post a more details Excpetion back trace? It's impossible to
> know what's going wrong without it. Have a look at the Error Log file:
> under <workspace>/.metadata/.log. You also didn't say what version of
> CDT you're using.

The CDT I use is 4.0.3, and here is the log :

java.lang.NullPointerException at
org.eclipse.cdt.launch.AbstractCLaunchDelegate.setBuildConfi guration(AbstractCLaunchDelegate.java:565)
at
org.eclipse.cdt.launch.AbstractCLaunchDelegate.buildForLaunc h(AbstractCLaunchDelegate.java:541)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:727)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:608)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:899)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlu gin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Furthermore, I can tell you that I have 4 projects in my workspace :
- a stand alone project, which works fine
- 2 static lib projects
- a applications project depending on the 2 static lib projects. Here I
can't debug the executables.

- Guillaume -
Re: Error launching debugger [message #216559 is a reply to message #216550] Mon, 26 May 2008 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trash.hotmail.com

> Furthermore, I can tell you that I have 4 projects in my workspace :
> - a stand alone project, which works fine
> - 2 static lib projects
> - a applications project depending on the 2 static lib projects. Here I
> can't debug the executables.

By the way, it might be useful for you to know that I do not have
automatic Makefile, but my owns. Also I removed 'Release' and 'Debug'
for each of my projects configurations and created a 'Default'
configuration instead.

G.
Re: Error launching debugger [message #216575 is a reply to message #216550] Mon, 26 May 2008 20:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

>
> java.lang.NullPointerException at
> org.eclipse.cdt.launch.AbstractCLaunchDelegate.setBuildConfi guration(AbstractCLaunchDelegate.java:565)
>
> at
> org.eclipse.cdt.launch.AbstractCLaunchDelegate.buildForLaunc h(AbstractCLaunchDelegate.java:541)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:727)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:608)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:899)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlu gin.java:1102)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> Furthermore, I can tell you that I have 4 projects in my workspace :
> - a stand alone project, which works fine
> - 2 static lib projects
> - a applications project depending on the 2 static lib projects. Here I
> can't debug the executables.

For some reason the Launch configuration you're trying to run has a
build configuration ID set on it that doesn't/no longer exists in the
project... You could try a couple things:
1) create a new launch configuration (not by copying the old one) for
the executable.
2) Disabling building before launch: Window > Preferences > Launching >
Build (if required) before launch.

You should probably also file a bug against CDT, as it looks like this
bug still exists in CDT 5

James
Re: Error launching debugger [message #216614 is a reply to message #216575] Tue, 27 May 2008 08:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trash.hotmail.com

> For some reason the Launch configuration you're trying to run has a
> build configuration ID set on it that doesn't/no longer exists in the
> project... You could try a couple things:
> 1) create a new launch configuration (not by copying the old one) for
> the executable.
> 2) Disabling building before launch: Window > Preferences > Launching >
> Build (if required) before launch.
>
> You should probably also file a bug against CDT, as it looks like this
> bug still exists in CDT 5

FYI, I have found a workaround: in order to create a debug
configuration, I first build my executables, then I right-click on it in
the 'Binaries' folder in the C/C++ view, I then select 'Properties' and
then with the 'Run/Debug Setting' panel, I was able to create a valid
configuration.

It seems that there is a bug when creating a debug configuration from
the Menu->Run->Open Debug Dialog.

Anyway, could you tell me where to fill a bug against CDT?

Thank you.
Re: Error launching debugger [message #216618 is a reply to message #216614] Tue, 27 May 2008 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elaskavaia.qnx.com

I think this is bug when you copy launch configuration and it is fixed already

exquisitus wrote:
>> For some reason the Launch configuration you're trying to run has a
>> build configuration ID set on it that doesn't/no longer exists in the
>> project... You could try a couple things:
>> 1) create a new launch configuration (not by copying the old one) for
>> the executable.
>> 2) Disabling building before launch: Window > Preferences > Launching
>> > Build (if required) before launch.
>>
>> You should probably also file a bug against CDT, as it looks like this
>> bug still exists in CDT 5
>
> FYI, I have found a workaround: in order to create a debug
> configuration, I first build my executables, then I right-click on it in
> the 'Binaries' folder in the C/C++ view, I then select 'Properties' and
> then with the 'Run/Debug Setting' panel, I was able to create a valid
> configuration.
>
> It seems that there is a bug when creating a debug configuration from
> the Menu->Run->Open Debug Dialog.
>
> Anyway, could you tell me where to fill a bug against CDT?
>
> Thank you.
Re: Error launching debugger [message #216757 is a reply to message #216618] Thu, 29 May 2008 08:17 Go to previous message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Alena Laskavaia wrote:
> I think this is bug when you copy launch configuration and it is fixed
> already

Woops, it seems you did indeed fix this :). It seems my HEAD checkout
is somewhat behind...

Thanks Alena!

James
Previous Topic:Help! Debugging crashing my session
Next Topic:How to set the build path to a specific directory *in the current project*
Goto Forum:
  


Current Time: Fri Apr 26 09:06:40 GMT 2024

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

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

Back to the top