473,395 Members | 1,856 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,395 software developers and data experts.

How should I debug this?

..NET 2.0

I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service

This works like this:
The window form call some methods in the dll library project (.net remoting)
which again calls the actual objects running in the windows service...

I have 3 VS2005 open on my pc, one for each of these projects

Now I've tested some functionality on form and it doesn't work. It is
supposed to send info over to the windows service so it can updated a table
in the database...

I've rebuilt the dll library project and installed it.... while target was
set to Debug, should I change it to Release or?

And how should I debug this.??

Any suggestions are most welcome!

Jeff
Jul 11 '07 #1
5 2459
Hi,

"Jeff" <do***@spam.mewrote in message
news:Oo**************@TK2MSFTNGP04.phx.gbl...
.NET 2.0

I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service

This works like this:
The window form call some methods in the dll library project (.net
remoting) which again calls the actual objects running in the windows
service...

I have 3 VS2005 open on my pc, one for each of these projects

You do not need 3 VS, as a matter of fact you need only two, one for each
executable. Debugging the service could be a little tricky, I do not know
any way to debug the onStart method of it. What I do is start the service
from the services panel and then use Debug/Attach to process to debug the
running of the project.

Jul 11 '07 #2
On Jul 11, 7:56 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,

"Jeff" <d...@spam.mewrote in message

news:Oo**************@TK2MSFTNGP04.phx.gbl...
.NET 2.0
I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service
This works like this:
The window form call some methods in the dll library project (.net
remoting) which again calls the actual objects running in the windows
service...
I have 3 VS2005 open on my pc, one for each of these projects

You do not need 3 VS, as a matter of fact you need only two, one for each
executable. Debugging the service could be a little tricky, I do not know
any way to debug the onStart method of it. What I do is start the service
from the services panel and then use Debug/Attach to process to debug the
running of the project.
I've resorted to a hack to debut OnStart before. I simply put a
Thread.Sleep for about 10 seconds, enough time for me to attach the
debugger.

Chris

Jul 11 '07 #3
Hi,

"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@m3g2000hsh.googlegro ups.com...
On Jul 11, 7:56 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
>Hi,

"Jeff" <d...@spam.mewrote in message

news:Oo**************@TK2MSFTNGP04.phx.gbl...
.NET 2.0
I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service
This works like this:
The window form call some methods in the dll library project (.net
remoting) which again calls the actual objects running in the windows
service...
I have 3 VS2005 open on my pc, one for each of these projects

You do not need 3 VS, as a matter of fact you need only two, one for each
executable. Debugging the service could be a little tricky, I do not know
any way to debug the onStart method of it. What I do is start the service
from the services panel and then use Debug/Attach to process to debug the
running of the project.

I've resorted to a hack to debut OnStart before. I simply put a
Thread.Sleep for about 10 seconds, enough time for me to attach the
debugger.
Nice, but you have to be fast, otherwise you will lose it. Also you might
forget to remove it when moved into production.

I do something similar, My OnStart just spraw a thread and then inside I do
all the work, in this case the OnStart has NO code at all.

Jul 11 '07 #4
<"Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>>
wrote:

<snip>
I do something similar, My OnStart just spraw a thread and then inside I do
all the work, in this case the OnStart has NO code at all.
How do you manage to spawn a thread without having any code at all?

;)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jul 11 '07 #5

"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP*********************@msnews.microsoft.com. ..
<"Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>>
wrote:

<snip>
>I do something similar, My OnStart just spraw a thread and then inside I
do
all the work, in this case the OnStart has NO code at all.

How do you manage to spawn a thread without having any code at all?

;)
I talk to it nicely :D
Jul 11 '07 #6

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

Similar topics

8
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
4
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
10
by: John Smith | last post by:
After reading C# documentation the Conditional attribute seemed the way to go, but after inspecting the IL it seems those methods are still there and I imagine the CLR removes them. Using #if DEBUG...
7
by: Wysiwyg | last post by:
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill
12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
3
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
3
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of...
1
by: Alexander Vasilevsky | last post by:
Hi! How to debug Powershell commandlets? -- http://www.alvas.net - Audio tools for C# and VB.Net developers
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.