BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BDS2006 -how to use Remote debugger

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Shapour
Guest





PostPosted: Wed Apr 25, 2007 2:27 pm    Post subject: BDS2006 -how to use Remote debugger Reply with quote



hello all,

I changed from cpp Builder 6 to BDS 2006. But I can not find a way to
use Remoete debugger.

in BCB 6 I used

Start -> parameter -> Extern: "extern pfad" and "extern host" and set
"debugging on extern system" to true.


But how can I do it with BDS 2006 ????

my Target Operationsystem: XP Professional -> No Firewall, no AV
my Develop PC: XP Professional


thanks fpr your replay
Back to top
Bruce Larrabee
Guest





PostPosted: Mon Apr 30, 2007 1:16 am    Post subject: Re: BDS2006 -how to use Remote debugger Reply with quote



Hello Shapour,

This is from the docs... These are the basic procedures.

It's really quite easy to setup and use, for what it's worth... B)

HTH,

Bruce

To debug a project on a machine that does not have Developer Studio 2006 installed,
you must install the remote debugger executable files. You can install these files
either directly from the installation disk or by copying them from a machine that
has Developer Studio 2006 installed.

To install the remote debugger

Use the installation disk if it is available.
Use files from the machine that has the IDE installed if the installation disk is not available.
To install the remote debugger from the installation disk

Insert the installation disk into the remote machine.
Choose Install Remote Debugger.
Follow the instructions provided by the wizard.
To install the remote debugger if the installation disk is not available

Create a directory on the remote machine for the installation files.
Locate the following files on the local machine:
rmtdbg100.exe
bccide.dll
bordbk100.dll
bordbk100N.dll
comp32x.dll
dbkpro100.dll
DCC100.DLL
DCC100IL.DLL
Borland.dbkasp.dll
By default, all of these files are in C:\Program Files\Borland\BDS\4.0\Bin.

Copy the files from your local machine to the directory you created on the remote machine.
On the remote computer, register bordbk100.dll and bordbk100n.dllby running the regsvr32.exe
registration utility. For example, on Windows XP, enter C:\Windows\System32\regsvr32.exe
bordbk100.dll at the command prompt, then enter C:\Windows\System32\regsvr32.exe bordbk100n.dll.
If you are debugging an ASP.NET application, copy Borland.dbkasp.dll to the
Install\GlobalAssemblyCache directory on the remote machine.
If you are debugging an ASP.NET application, register the Borland.dbkasp.dll in the
GlobalAssemblyCache using the Microsoft .NET gacutil.exe utility. For example,
on Windows XP with Microsoft .NET Framework SDK,
enter C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\gacutil Borland.dbkasp.dll.

You must establish a TCP/IP connection between the local and remote machines
in preparation for remote debugging. This connection uses multiple ports that
are chosen dynamically by Windows. The remote debug server listens on one port,
and a separate port is opened for each application that is being debugged.
A firewall that only allows connections to the listening port will prevent
the remote debugger from working.
Note:
If the remote machine uses the firewall included with Windows XP service pack 2,
you will receive a message asking whether Borland remote debugging service
should be allowed. You must indicate that this is allowed.

Warning:
The connection between Developer Studio 2006 and the remote debug server
is a simple TCP/IP socket, with neither encryption nor authentication support.
Therefore, the remote debug server should not be run on a computer that can
be accessed over the network by untrusted clients.


To connect the local machine and the remote machine

Ensure that the remote debugger is installed on the remote machine.
Ensure that the executable files and symbol files (.tds. .rsm and .pdb)
have been copied to the remote machine.
On the remote machine, start rmtdbg100.exe with the -listen argument.
rmtdbg100.exe -listen

This starts the remote debugger's listener and directs it to wait for
a connection from your host machine's IDE.

On the local machine, choose RunAttach to Process.
This displays the Attach to Process dialog.

Specify the host name or TCP/IP address for the remote machine,
then click Refresh.
A list of processes running on the remote machine is displayed.
This verifies the connectivity between the local and remote machines.

On the local machine, choose RunLoad ProcessRemote.
This displays the Remote page of the Load Process dialog.

In the Remote path field, specify the full path for the directory on the
remote machine into which you copied the executable files and symbol files.
The name of the executable must be included.
For example, if you are debugging a program1.exe, and you copy this to a
directory named RemoteDebugFiles\Program1 on the remote machine, specify

C:\RemoteDebugFiles\Program1\program1.exe.

In the Remote host field, specify the host name or TCP/IP address for
the remote machine.
Click the Load button.
This connects the IDE on the local machine to the debugger on the
remote machine.

Once this connection is established, you can use the IDE on the local
machine to debug the application as it runs on the remote machine.
Note:
You cannot interact directly with the remote application through the
remote debugger. For interactive debugging, you can establish a remote
desktop connection.


Executable files and symbol files must be copied to the remote machine
after they are compiled. You must set the correct options on your local
machine in order to generate these files.

To prepare files for debugging on a remote machine

Open the project on your local machine.
Choose ProjectOptionsLinker and verify that the Include remote debug
symbols option is checked.
This directs the compiler to generate a symbol file. The following
extensions are used in symbol files (for Delphi projects): Language
Debug symbol file extension
Delphi for Win32
.rsm

Delphi for .NET
.rsm and .pdb

C++
.tds

C#
.pdb



Compile the project on your local machine.
Copy the executable files and symbol files for the project to the
remote machine.
Choose RunLoad Process
Specify the directory into which you copied the symbol files in the
Debug symbols search path field.
Click OK.
Back to top
Shapour
Guest





PostPosted: Wed May 02, 2007 8:10 am    Post subject: Re: BDS2006 -how to use Remote debugger Reply with quote



Hello Bruce,

thank you for your replay.
I will try it.

Shapour

Bruce Larrabee schrieb:
Quote:

Hello Shapour,

This is from the docs... These are the basic procedures.

It's really quite easy to setup and use, for what it's worth... B)

HTH,

Bruce

To debug a project on a machine that does not have Developer Studio 2006
installed,
you must install the remote debugger executable files. You can install
these files
either directly from the installation disk or by copying them from a
machine that
has Developer Studio 2006 installed.

To install the remote debugger

Use the installation disk if it is available.
Use files from the machine that has the IDE installed if the
installation disk is not available.
To install the remote debugger from the installation disk

Insert the installation disk into the remote machine.
Choose Install Remote Debugger.
Follow the instructions provided by the wizard.
To install the remote debugger if the installation disk is not available

Create a directory on the remote machine for the installation files.
Locate the following files on the local machine:
rmtdbg100.exe
bccide.dll
bordbk100.dll
bordbk100N.dll
comp32x.dll
dbkpro100.dll
DCC100.DLL
DCC100IL.DLL
Borland.dbkasp.dll
By default, all of these files are in C:\Program Files\Borland\BDS\4.0\Bin.

Copy the files from your local machine to the directory you created on
the remote machine.
On the remote computer, register bordbk100.dll and bordbk100n.dllby
running the regsvr32.exe
registration utility. For example, on Windows XP, enter
C:\Windows\System32\regsvr32.exe
bordbk100.dll at the command prompt, then enter
C:\Windows\System32\regsvr32.exe bordbk100n.dll.
If you are debugging an ASP.NET application, copy Borland.dbkasp.dll to the
Install\GlobalAssemblyCache directory on the remote machine.
If you are debugging an ASP.NET application, register the
Borland.dbkasp.dll in the
GlobalAssemblyCache using the Microsoft .NET gacutil.exe utility. For
example,
on Windows XP with Microsoft .NET Framework SDK,
enter C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\gacutil
Borland.dbkasp.dll.

You must establish a TCP/IP connection between the local and remote
machines
in preparation for remote debugging. This connection uses multiple ports
that
are chosen dynamically by Windows. The remote debug server listens on
one port,
and a separate port is opened for each application that is being debugged.
A firewall that only allows connections to the listening port will prevent
the remote debugger from working.
Note:
If the remote machine uses the firewall included with Windows XP
service pack 2,
you will receive a message asking whether Borland remote debugging service
should be allowed. You must indicate that this is allowed.

Warning:
The connection between Developer Studio 2006 and the remote debug server
is a simple TCP/IP socket, with neither encryption nor authentication
support.
Therefore, the remote debug server should not be run on a computer that can
be accessed over the network by untrusted clients.


To connect the local machine and the remote machine

Ensure that the remote debugger is installed on the remote machine.
Ensure that the executable files and symbol files (.tds. .rsm and .pdb)
have been copied to the remote machine.
On the remote machine, start rmtdbg100.exe with the -listen argument.
rmtdbg100.exe -listen

This starts the remote debugger's listener and directs it to wait for
a connection from your host machine's IDE.

On the local machine, choose RunAttach to Process.
This displays the Attach to Process dialog.

Specify the host name or TCP/IP address for the remote machine,
then click Refresh.
A list of processes running on the remote machine is displayed.
This verifies the connectivity between the local and remote machines.

On the local machine, choose RunLoad ProcessRemote.
This displays the Remote page of the Load Process dialog.

In the Remote path field, specify the full path for the directory on the
remote machine into which you copied the executable files and symbol files.
The name of the executable must be included.
For example, if you are debugging a program1.exe, and you copy this to a
directory named RemoteDebugFiles\Program1 on the remote machine, specify

C:\RemoteDebugFiles\Program1\program1.exe.

In the Remote host field, specify the host name or TCP/IP address for
the remote machine.
Click the Load button.
This connects the IDE on the local machine to the debugger on the
remote machine.

Once this connection is established, you can use the IDE on the local
machine to debug the application as it runs on the remote machine.
Note:
You cannot interact directly with the remote application through the
remote debugger. For interactive debugging, you can establish a remote
desktop connection.


Executable files and symbol files must be copied to the remote machine
after they are compiled. You must set the correct options on your local
machine in order to generate these files.

To prepare files for debugging on a remote machine

Open the project on your local machine.
Choose ProjectOptionsLinker and verify that the Include remote debug
symbols option is checked.
This directs the compiler to generate a symbol file. The following
extensions are used in symbol files (for Delphi projects): Language
Debug symbol file extension
Delphi for Win32
.rsm

Delphi for .NET
.rsm and .pdb

C++
.tds

C#
.pdb



Compile the project on your local machine.
Copy the executable files and symbol files for the project to the
remote machine.
Choose RunLoad Process
Specify the directory into which you copied the symbol files in the
Debug symbols search path field.
Click OK.



Back to top
Shapour
Guest





PostPosted: Thu May 03, 2007 8:10 am    Post subject: Re: BDS2006 -how to use Remote debugger Reply with quote

thanks Bruce,

I did it, but it is realy very complicatedly to do remote debugging
unsing BDS 2006.

in the previous Version it was easy to do that.

Is it possible to press F9 and start the Applikation on a remote computer?

Is it possible to run the debugger as a service?

thanks



Bruce Larrabee schrieb:
Quote:

Hello Shapour,

This is from the docs... These are the basic procedures.

It's really quite easy to setup and use, for what it's worth... B)

HTH,

Bruce

To debug a project on a machine that does not have Developer Studio 2006
installed,
you must install the remote debugger executable files. You can install
these files
either directly from the installation disk or by copying them from a
machine that
has Developer Studio 2006 installed.

To install the remote debugger

Use the installation disk if it is available.
Use files from the machine that has the IDE installed if the
installation disk is not available.
To install the remote debugger from the installation disk

Insert the installation disk into the remote machine.
Choose Install Remote Debugger.
Follow the instructions provided by the wizard.
To install the remote debugger if the installation disk is not available

Create a directory on the remote machine for the installation files.
Locate the following files on the local machine:
rmtdbg100.exe
bccide.dll
bordbk100.dll
bordbk100N.dll
comp32x.dll
dbkpro100.dll
DCC100.DLL
DCC100IL.DLL
Borland.dbkasp.dll
By default, all of these files are in C:\Program Files\Borland\BDS\4.0\Bin.

Copy the files from your local machine to the directory you created on
the remote machine.
On the remote computer, register bordbk100.dll and bordbk100n.dllby
running the regsvr32.exe
registration utility. For example, on Windows XP, enter
C:\Windows\System32\regsvr32.exe
bordbk100.dll at the command prompt, then enter
C:\Windows\System32\regsvr32.exe bordbk100n.dll.
If you are debugging an ASP.NET application, copy Borland.dbkasp.dll to the
Install\GlobalAssemblyCache directory on the remote machine.
If you are debugging an ASP.NET application, register the
Borland.dbkasp.dll in the
GlobalAssemblyCache using the Microsoft .NET gacutil.exe utility. For
example,
on Windows XP with Microsoft .NET Framework SDK,
enter C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\gacutil
Borland.dbkasp.dll.

You must establish a TCP/IP connection between the local and remote
machines
in preparation for remote debugging. This connection uses multiple ports
that
are chosen dynamically by Windows. The remote debug server listens on
one port,
and a separate port is opened for each application that is being debugged.
A firewall that only allows connections to the listening port will prevent
the remote debugger from working.
Note:
If the remote machine uses the firewall included with Windows XP
service pack 2,
you will receive a message asking whether Borland remote debugging service
should be allowed. You must indicate that this is allowed.

Warning:
The connection between Developer Studio 2006 and the remote debug server
is a simple TCP/IP socket, with neither encryption nor authentication
support.
Therefore, the remote debug server should not be run on a computer that can
be accessed over the network by untrusted clients.


To connect the local machine and the remote machine

Ensure that the remote debugger is installed on the remote machine.
Ensure that the executable files and symbol files (.tds. .rsm and .pdb)
have been copied to the remote machine.
On the remote machine, start rmtdbg100.exe with the -listen argument.
rmtdbg100.exe -listen

This starts the remote debugger's listener and directs it to wait for
a connection from your host machine's IDE.

On the local machine, choose RunAttach to Process.
This displays the Attach to Process dialog.

Specify the host name or TCP/IP address for the remote machine,
then click Refresh.
A list of processes running on the remote machine is displayed.
This verifies the connectivity between the local and remote machines.

On the local machine, choose RunLoad ProcessRemote.
This displays the Remote page of the Load Process dialog.

In the Remote path field, specify the full path for the directory on the
remote machine into which you copied the executable files and symbol files.
The name of the executable must be included.
For example, if you are debugging a program1.exe, and you copy this to a
directory named RemoteDebugFiles\Program1 on the remote machine, specify

C:\RemoteDebugFiles\Program1\program1.exe.

In the Remote host field, specify the host name or TCP/IP address for
the remote machine.
Click the Load button.
This connects the IDE on the local machine to the debugger on the
remote machine.

Once this connection is established, you can use the IDE on the local
machine to debug the application as it runs on the remote machine.
Note:
You cannot interact directly with the remote application through the
remote debugger. For interactive debugging, you can establish a remote
desktop connection.


Executable files and symbol files must be copied to the remote machine
after they are compiled. You must set the correct options on your local
machine in order to generate these files.

To prepare files for debugging on a remote machine

Open the project on your local machine.
Choose ProjectOptionsLinker and verify that the Include remote debug
symbols option is checked.
This directs the compiler to generate a symbol file. The following
extensions are used in symbol files (for Delphi projects): Language
Debug symbol file extension
Delphi for Win32
.rsm

Delphi for .NET
.rsm and .pdb

C++
.tds

C#
.pdb



Compile the project on your local machine.
Copy the executable files and symbol files for the project to the
remote machine.
Choose RunLoad Process
Specify the directory into which you copied the symbol files in the
Debug symbols search path field.
Click OK.



Back to top
Bruce Larrabee
Guest





PostPosted: Sun May 06, 2007 4:53 pm    Post subject: Re: BDS2006 -how to use Remote debugger Reply with quote

Hello Shapour,

I don't know the answer to either of those questions...

Sorry,

Bruce
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.