473,325 Members | 2,671 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,325 software developers and data experts.

Debugging multiple projects in same solution

Frinavale
9,735 Expert Mod 8TB
Hi!

I have 2 projects in my solution and I have figured out how to get both to run in debug mode however the breakpoints are never actually being stopped at.

Right now, in the solution explorer, I am right clicking on each project and selecting Debug->Start new instance. The projects run, and I see output...but the debugger is not stopping at the break points.

Has anyone else experienced this?
I'm using Visual Studio 2008...

-Frinny
May 10 '10 #1
4 3098
balabaster
797 Expert 512MB
@Frinavale
One of a few things spring to mind:

1). You're hitting CTRL+F5 to build/run your application instead of just F5 - in which case it's not being run in the debugger but is spawning an outside process.
2). The browser you're looking at (if an ASP.NET application) isn't the debug instance but instead another instance. Right click your ASP.NET development server in the taskbar and close it. Close all your browser instances, run again.
3). Debugging is disabled - when you first run a web application it comes up with a dialog that suggests that debugging is disabled and asks you to enable it by pressing OK. You may have inadvertently clicked the wrong button. Check your web.config and that <compilation debug="true"> - by default this is false.
4). Your code isn't passing through the codeblock where your breakpoint is set. Since I know you're a decent programmer, I'm going to assume that this isn't the case ;)
5). I had a play with VS2008 to see if I could replicate the issue and couldn't...

I did find this though that may be of assistance: http://stackoverflow.com/questions/6...8-stop-working
Hope that helps...
May 10 '10 #2
Frinavale
9,735 Expert Mod 8TB
Maybe I should have given more details about the application I'm working on right now. My solution has 2 projects in it: a console application that is a socket-server, and a win-forms application that is a client. (I'm playing with regular sockets right now before I start testing a VB6-sockets thing).

1) I am not hitting Ctrl+F5 (I'm right clicking on the projects and select "Debug->start new instance" or "Debug->step into instance")

2&3) I'm not working with ASP.NET right now

4) See that's the weird part....the code is being executed. I have some console.writeline statements and have set a breakpoint right on that code...the text is being written into the console but Visual Studio is not stopping at the break point.

I've gone through a whole bunch of articles online and nothing's explaining why this might be the case.
May 10 '10 #3
Frinavale
9,735 Expert Mod 8TB
Well I don't know what was wrong....but it suddenly started working???
Weird!!

Thanks for your help though!

-Frinny
May 10 '10 #4
balabaster
797 Expert 512MB
@Frinavale
Eek, the worst kind of bug, one that just goes away without explanation. Glad it works again, have my fingers crossed that it doesn't resurface :D
May 10 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cliff Williams | last post by:
How are people managing multiple, interdependent projects in the same solution? If I have to rebuild my solution file one more time, I think my head is going to spin around and pop off. I've...
2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
7
by: Jon via DotNetMonster.com | last post by:
Hi all I'm creating a Contact Management System. I have added one console project and various window projects (for the user interfaces) to the solution. I've added these as obviously there will...
0
by: Andy G | last post by:
I'm reading contradicting statements from Microsoft. This is very confusing and I am having a hell of a time with running multiple projects within one solution. From: Team Development with...
4
by: Brian | last post by:
Hello - Ive got a single "Solution" with two projects. While working with Project2, when I hit F5 to run and debug, the main form from Project1 loads. What is up with this? I thought that...
2
by: Samuel L Matzen | last post by:
Hi, I am trying to develop with multiple projects in a single solution. The many of these projects create .dlls that are used by other projects. When I reference a .dll I reference it in the...
0
by: rogsonl | last post by:
When debugging a set of utilities used in my main project, I keep getting the following error: "Unable to write to output file" ... "The process cannot access the file because it is being used by...
6
by: thomson | last post by:
Hi All, i do hae a solution in which i do have mulitple projects including Web Projects,, Depending on the functionality it gets redirected to different web projects and it is working fine, ...
1
by: Divyesh | last post by:
Hello, I need some help to get out of cumbersome process. For example, I've one solution with 2 EXE & a DLL project. DLL is referred by both exe projects hence I've added DLL as reference to...
0
by: Robson Siqueira | last post by:
Guys, I am facing a weird problem. When I am debugging a solution with multiple projects, I always receive the message "the breakpoint will not currently be hit. the source code is different...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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

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.