PC Review


Reply
Thread Tools Rate Thread

Cannot run exe to debug DLL in VS.NET 2003 - Unable to start debugging. Unable to start program. - Why???

 
 
Bob Rock
Guest
Posts: n/a
 
      1st Nov 2006
Hello,

I'm using an executable (for which I do not have the source code nor the pdb
file) as the startup application to load a DLL I'm writing and need to
debug. If I try to debug the DLL I immediately get the error "Unable to
start debugging. Unable to start program XXX.exe". If I do "Start without
debugging" my startup application gets correctly executed. Is this problem
due to the fact I'm missing the debugging information for the exe??? The
VS.NET 2003 debugger seems to work fine (if I create for example a console
application I can debugging it without any issues). I also tried using
VS.NET 2005 and everything works as expected apart an initial notice that
the IDE could not find the debugging information for the executable. Is this
the issue with VS.NET 2003, is it the missing debugging info for the exe???
Any ideas?
Thanks.

Bob Rock


 
Reply With Quote
 
 
 
 
Oleg Starodumov
Guest
Posts: n/a
 
      1st Nov 2006

> I'm using an executable (for which I do not have the source code nor the pdb
> file) as the startup application to load a DLL I'm writing and need to
> debug. If I try to debug the DLL I immediately get the error "Unable to
> start debugging. Unable to start program XXX.exe". If I do "Start without
> debugging" my startup application gets correctly executed. Is this problem
> due to the fact I'm missing the debugging information for the exe??? The
> VS.NET 2003 debugger seems to work fine (if I create for example a console
> application I can debugging it without any issues). I also tried using
> VS.NET 2005 and everything works as expected apart an initial notice that
> the IDE could not find the debugging information for the executable. Is this
> the issue with VS.NET 2003, is it the missing debugging info for the exe???
> Any ideas?


Missing debug information should not cause this problem.

Is this executable native or managed? Same for dll?

Is there any additional explanation in the error message?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]



 
Reply With Quote
 
Bob Rock
Guest
Posts: n/a
 
      1st Nov 2006
> Missing debug information should not cause this problem.
>
> Is this executable native or managed? Same for dll?
>
> Is there any additional explanation in the error message?
>
> --
> Oleg
> [VC++ MVP http://www.debuginfo.com/]
>


No additional info in the error message. I tried changing the startup exe to
any application like notepad or IE. I get the same exact result and message.
Anyway the original startup exe was a managed VB.NET 2002 compiled
application. But any exe leads to the same error.

Regards,
Bob Rock


 
Reply With Quote
 
Bob Rock
Guest
Posts: n/a
 
      1st Nov 2006
BTW, I'm using a windows 2003 R2 standard edition + visual studio 6 + visual
studio .net 2003 + visual studio 2005. Everything service packed to the
latest bits.

Bob Rock


 
Reply With Quote
 
Oleg Starodumov
Guest
Posts: n/a
 
      1st Nov 2006

What happens if you open that same executable as a new solution?
(I mean something like File | Open Solution and select the .exe)
Will it be possible to debug it (and the dll)?

Oleg



 
Reply With Quote
 
Bob Rock
Guest
Posts: n/a
 
      1st Nov 2006
"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:u1GKTye$(E-Mail Removed)...
>
> What happens if you open that same executable as a new solution?
> (I mean something like File | Open Solution and select the .exe)
> Will it be possible to debug it (and the dll)?
>
> Oleg
>


I do not have the source code for the original executable. Anyway, having
created a solution with a simple EXE that loads my DLL I can debug both the
EXE and the DLL . Still I cannot use an external executable as the startup
application for my DLL. This is most strange.

Bob


 
Reply With Quote
 
Oleg Starodumov
Guest
Posts: n/a
 
      2nd Nov 2006

> I do not have the source code for the original executable. Anyway, having
> created a solution with a simple EXE that loads my DLL I can debug both the
> EXE and the DLL . Still I cannot use an external executable as the startup
> application for my DLL. This is most strange.
>


OK. So at least you have a workaround.

Also this narrows the problem down to the dll's solution.
Could you please list all settings on Project properties | Configuration Properties | Debugging
page?

Oleg




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote debugging: Unable to map the debug start page URL to a machine name Tom wilson Microsoft Dot NET Framework 1 17th May 2005 07:08 AM
Remote debugging: Unable to map the debug start page URL to a machine name Tom wilson Microsoft VB .NET 1 17th May 2005 07:08 AM
Remote debugging: Unable to map the debug start page URL to a machine name Tom wilson Microsoft Dot NET 1 17th May 2005 07:08 AM
Remote debugging: Unable to map the debug start page URL to a machine name Tom wilson Microsoft ASP .NET 1 17th May 2005 07:08 AM
Unable to start debugging on the web server After 2003 SP1 =?iso-8859-1?B?QuFsdGljbw==?= Microsoft ASP .NET 1 7th May 2005 04:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 AM.