473,663 Members | 2,694 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5900
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
misunderstandin g. 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/vxtskremotedebu ggingacrossmach ineaccounts.asp

4. I believe the following article is also helpful:

Setting Up Remote Debugging
http://msdn.microsoft.com/library/de...us/vsdebug/htm
l/vxtskremotedebu ggingacrossmach ineaccounts.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/vctskinstalling remotedebugmoni tor.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
5998
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 on the Stored Proc, enter the parameters and the debugger stops on the first line and I can single
3
383
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 Windows XP workstation, but other than that, it was smooth sailing. And, oh yeah. I also have to run remote desktop sharing terminal between my XP workstation and the W2K target or I can't RPC to the destination machine.
0
3221
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
0
1231
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 choose Copy Project...on the web project on my local drive...setting it to compile with debug switched on. Then open a browser to the remote site and attach to the aspnet_wp.exe in vs.net...should it not break at the points set in the compiled local...
3
289
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 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...
6
2197
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. If someone could tell me what I'm missing that would be great. 1. Create an external class and call it Test.dll. 2. Create a test Asp.net app called App.sln. 3. For App.sln I set a reference to Test.dll. 4. Compile App.sln and run it. The web...
0
1805
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 system is Windows XP Pro and the test machine is Windows 2003, both running the latest upgrades; Visual Studio 2005 is installed on the development system and the .Net 2.0 framework is installed on the test system. The two systems do not have the...
5
2798
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 some error related to FrontPage extensions. I couldn't exactly understand the error. I tried to create the project in C: \Inetpub\wwwroot. If I just open a ASP file (by navigating to the File-->Open File... menu), then Interdev doesn't give the...
0
1583
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 setup a remote debugging session between my local PC with the source code in c# vs2008 and an XP image with the application running in a VMware image running, on another networked PC. My local pc is part of a domain, the server running the vmware...
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.