Connecting to dbx failed:

Hi

I installed the new Sun Studio 12 on Solaris 10 x86,

I choose to install it under /opt/studio12

I compile the welcome project, no problem,

then I try "Run/Debug executeable", I point out the executeable dist/Debug/Welcome, the working directory is SunStudioProjects/Welcome and press Debug

I get the following

"Connecting to dbx failed: wait(2) failure

fatal error: Cannot find run directory for /opt/studio12/SUNWspro/prod/bin/dbx - No such file or directory

/Lars

[523 byte] By [Lars_Va] at [2007-11-27 6:20:45]
# 1

Hi Lars,

> I installed the new Sun Studio 12 on Solaris 10 x86,

> I choose to install it under /opt/studio12

That's ok, just make sure you have /opt/studio12/SUNWspro/bin

at the beginning of your PATH setting, so you can run "sunstudio",

compilers and tools from the proper location.

> I compile the welcome project, no problem,

> then I try "Run/Debug executeable", I point out the

There is a change in the "workflow". Now it is much more simple :-)

You have a project, so you don't need to use "Run/Debug executable"

menu item and file all details (executable, working directory, args, ...).

All you need is to press F5 or "Debug Main Project" button on toolbar,

or select this project, right click, and select "Step Into Project" menu

item from context menu.

> executeable dist/Debug/Welcome, the working directory

> is SunStudioProjects/Welcome and press Debug

This way should work if you specify all details properly.

But this way is mostly to debug a program that does not have

a project associated with it.

> I get the following

> "Connecting to dbx failed: wait(2) failure

> fatal error: Cannot find run directory for

> /opt/studio12/SUNWspro/prod/bin/dbx - No such file or

> directory

The error message says: "Cannot find run directory".

Make sure you specified a correct "Working Directory".

Thanks,

Nik

Nik.Molchanova at 2007-7-12 17:36:27 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
I restared sunstudio and now it works. I did not change anything though./Lars
Lars_Va at 2007-7-12 17:36:27 > top of Java-index,Development Tools,Solaris and Linux Development Tools...