Last post Feb 11, 2006 01:10 PM by lprigmore
Feb 07, 2006 04:09 AM|icowley|LINK
I have installed both 2003 and 2005 on my machine and I have recently written a simple class library (httphandler). When I try to debug it (using debug mode 'Wait to Attach to an External Process'), only when I press start it just builds and then stops.
Does anyone have any idea why I can't set this up to listen for external app calls?
Feb 09, 2006 11:46 PM|agfying|LINK
Hi, I've two suggestions for you
1) Write a Console Application that use your class library and then, start you Console Application and use the VS.Net Debugger.
2) If you are familiar with NUnit, write a NUnit scenario for you Class Library. Test your Class Library with NUnit. If you want to debug line by line, just before the loading of your class library inside NUnit. Attach the an External Process to NUnit.exe
and start the process of NUnit Test.
If you have any further questions, just contact me.
good luck !
Feb 10, 2006 08:23 PM|lprigmore|LINK
I am having the same problem. However I am using VS2005. I went to my project Properties annd set "Start external Program:" to the location of nunit-gui.exe. now when I click the debug ">" toolbar button, the tests run but it doesn't stop on the VS2005 breakpoints.
If I could follow your suggistion it might help. However, I don't know how to "just before the loading of your class library inside NUnit. Attach the an External Process to NUnit.exe and start the process of NUnit Test". Could you you cook book for us?
Thanks in advance for your help,
Feb 11, 2006 01:10 PM|lprigmore|LINK
I am just learning this stuff. I made a mistake on my previous post. I have two projects that are almost duplicate. I had NUnit -Gui pointed to the wrong one! I had confused myself! One thing I did learn from the experience is that NUnit-Gui starts with
the last project it had loaded. Not the one that I have loaded in VS2005. To start debug/test the next project, I start NUnit-Gui independently, File->Open and load the next project that I want to debug/test, exit NUnit-Gui. (Then NUnit-Gui.exe will load that
project when it starts again.) Then, in VS2005, go to Project Properties->Debug and set "Start external Program:" to NUnit-Gui.exe. Then I can use the Debug features of VS2005 and NUnit-Gui.exe simutaneously. However, I would still like to learn how to "just
before the loading of your class library inside NUnit. Attach the an External Process to NUnit.exe and start the process of NUnit Test". (Maybe that is what I did and just misunderstood you.) If you have the time to teach me. Any other insights about the topic
that you might have are also greatly appreciated.