Re: .exe debug without sources from Visual Studio 2005



On Fri, 23 Dec 2005 18:06:55 +0200, "Arturas" <no@xxxxxxxxx> wrote:

>exe I have is for ARM, not x86 processor. I can debug it on real device
>running WM 2003 SE using eVC 4.0 debugger with no problem. The problem is
>that I want to debug that exe on another target device running Windows
>Mobile 5.0. eVC 4.0 does not support WM5 so I cant use it. AFAIK WM5 is
>supported only by Visual Studio 2005, but I cant find how to debug exe
>there...

Windows CE compiler IDEs (toolkits for VC 5 and VC 6, eVC 3, eVC 4
have been very fussy about platform mismatches; they won't support
debugging unless the platform specified in the IDE matches the actual
platform on the hardware. I haven't tried VS 2005, but I wouldn't be
surprised if it is as fussy as the earlier tools. The only
justification I can think of for the restriction is to protect
programmers from their own stupidity. A noble cause, but inconsistent
with much of the Win 32 API and even many of the other tools.

If you can't recompile with VS 2005 so you can debug directly, then I
think you're left with:
Sprinkle ASSERTs _liberally_ throughout your code.
Build and use a logging system that logs to a file on the device.
Use MessageBoxes
Debug as much as possible on other platforms
Use patience (lots and lots of it)

>
><r_z_aret@xxxxxxxxxxxx> wrote in message
>news:1j4oq1t54qe183poesovqmcs3p6j1krqrn@xxxxxxxxxx
>> On Fri, 23 Dec 2005 10:40:38 +0200, "Arturas" <no@xxxxxxxxx> wrote:
>>
>>>Hi,
>>>
>>>Is it possible to debug already compiled application (.exe file) without
>>>having its C source code using Microsoft Studio 2005? I can load .exe
>>>(File -> Open ->Project) but I didnt find where can I specify that loaded
>>>.exe is for Windows CE, not for Win32...
>>
>>
>> Are trying to modify an executable to change it from "big" Windows to
>> CE? If you have a custom CE platform running on an x86 CPU, that
>> _might_ be possible. Otherwise, not.
>>
>>
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and
>> please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 20 Park Plaza, Suite 478
>> Boston, MA 02116
>> www.penfact.com
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.



Relevant Pages

  • Re: Challenge VB Question
    ... program to be able to use the C++ debugger. ... VB6 ocx with debug symbols, ... It sounds to me like you have a C++ app (server exe?) that uses the VB6 ...
    (microsoft.public.vb.enterprise)
  • Debug problem
    ... What I find particularly odd is that the exe created by the build seems to ... Debug Problems ... Then I got an idea and moved the exe to another folder on the ... the laptop. ...
    (microsoft.public.vstudio.general)
  • Re: properly disposing of filestream
    ... Try to use the release version of the EXE for the one app, and debug from VS the another instance. ... "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" Michelangelo ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Debug inside a library
    ... You can only debug a process from one debugger as far as I know. ... EXE project, right-click on the solution in solution explorer, and click Add ... and select the DLL project. ... Make sure you add the reference in the EXE ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Adding references: the details
    ... >>> debug DLL, etc. ... >> compilation and in the csproj file it adds a reference to the ... > correct match for given compilation mode would be ... >> exe without a problem, ...
    (microsoft.public.dotnet.languages.csharp)