473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Remote Debugging Break Points

I have setup remote debugging on an NT4 workstation for
testing. I then build from the debug config on my machine
and copy all the files from the /bin/debug folder
including the .PDB files. I then connect to the remote
machine with VNC and start the application, once running
from VS .NET on my development machine I connect to that
process and the running app is shown in the IDE, but I
cannot get the application to stop on any breakpoints I
add in.

What am I missing or not doing?

Thanks
Jul 21 '05 #1
3 5866
Hello Nick,

Thanks for your post. As I understand, you configured remote debugging on a
remote Windows NT 4 workstation. Then you copied the execute file and its
corresponding .PDB files, and execute it in the remote system. You are able
to attach the remote process in the local VS .NET, however, it will not hit
any breakpoints you set. Please correct me if there is any
misunderstanding. Now I'd like to share the following information with you:

1. Please make sure that we choose proper program types when attaching to a
process. Though I am do not know the type of your Visual C++ project, I
believe that selecting both "Common Language Runtime" and "Native" will not
go wrong.

2. Another issue may be that Visual Studio .NET pickes up the wrong .pdb
files for your program. Generally speaking, Visual Studio .NET will load
the .pdb files on local instead of on the remote machine. Please check
whether you copied the correct PDB fils to the local machine, and are there
any other copies of that .pdb on your machine (ie in the system32
directory)?

If you build the project locally, I suggest that you can open the project
in Visual Studio .NET IDE before attaching to its remote process.

3. In addition, I am not familiar with VNC. When you connect to a remote
machina via VNC, will it start another user's Terminal Server session? If
so, you will need to apply the remoting debugging settings per MSDN article
below:

Remote Debugging Under Another User Account
http://msdn.microsoft.com/library/de...us/vsdebug/htm
l/vxtskremotedebuggingacrossmachineaccounts.asp

4. I believe the following article is also helpful:

Setting Up Remote Debugging
http://msdn.microsoft.com/library/de...us/vsdebug/htm
l/vxtskremotedebuggingacrossmachineaccounts.asp

I am standing by for your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Hi thanks for your reply. First the language I am using is C# not C++,
apart from that you have understood everything.

When I am back in the office tomorrow morning I will try what you have
put in your steps as I am sure this is still applicable even though I am
using C#.

I am not sure about VNC using another users session, I will have to look
into this, I will take a look at the link you sent me as I haven't seen
that page before. You have listed the URL twice, is there a mistake or
you just didn't realise you had already added the URL?

Thanks

Nick


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3
Hi Nick,

Thanks a lot for your response.

Since your project type is C#, you need to copy .PDB file to the directory
where the executable file is loaded on the remote machine. After attaching
to the remote process, please check whether there is a question mark at the
beginning of each breakpoint. If so, the breakpoint will not take effect.
It will give us detailed error information if we point the mouse on the
question mark.

The following is a correct link to "Setting Up Remote Debugging":
http://msdn.microsoft.com/library/de...us/vsdebug/htm
l/vctskinstallingremotedebugmonitor.asp

I look forward to your result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Steve Meier | last post by:
Environment: SQLServer Developer Edition on Machine A Enterprise Manager running on remote machine B Both machines are in the same subnet I open Enterprise Mgr on Machine A, right click...
3
by: INGSOC | last post by:
I spent a few hours today setting up remote debugging in VS.2003 I had to disable the firewall, subvert the security scheme and let anonymous users have full access to my COM+ objects on my...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
0
by: yurps | last post by:
I got remote debugging setup...but now I am confused how it works. Must I open the remote website from the file share in visual studio.net...and then set break-points there. Can I not just...
3
by: Nick Bunton | last post by:
I have setup remote debugging on an NT4 workstation for testing. I then build from the debug config on my machine and copy all the files from the /bin/debug folder including the .PDB files. I then...
6
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
0
by: Ken Allen | last post by:
The MSDN documentation on remote debugging is a bit sparse, to say the least, and there is almost no information available on the 'best' way to configure this. I should note that my development...
5
by: rn5a | last post by:
Can someone please suggest me a text editor especially for DEBUGGING ASP scripts apart from Microsoft Visual Interdev? I tried using Visual Interdev & created a project but Interdev generates...
0
by: Peted | last post by:
I suspect there is a better forum for this question, but i couldnt find it. If someone could point me in the right direction or help me with this question it would be muchly appreciated I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.