Re: Debugging problems
Sebastian Andersson <[email protected]> Tue, 20 Mar 2012 09:26:44 +0100
| Newsgroups | gmane.comp.version-control.cvs.tortoisecvs.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2864451659542917945== Content-Type: multipart/alternative; boundary="_baf23f67-a537-4576-baaa-7d228e2da0e1_" --_baf23f67-a537-4576-baaa-7d228e2da0e1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello! I'm sorry for being unclear. It was only my guess that it had to do with dl= l-files=2C which was based upon my code working via installing and not working via debugging in Visual Stud= io. Also=2C when I run my debugger (as described below)=2C Visual Studio overwrites my TortoiseAct.exe in my C= :\Program Files\TortoiseCVS folder=2C but leaves the TortoiseShell.dll's as they were since the last reinstall=2C= which seemed weird to me. I am also not 100% sure how the dll-files are acting in the debugging sense= . Here is what I do: I compile and debug my code (mostly changes in TortoiseAct project) in Visu= al Studio. With "debug" I mean running the debugger on the TortoiseAct project with added Command Argument= s=2C (in my case=2C my cvs-verb plus arguments: "CVSSearch -l C:\...\workdir"). This runs the prog= ram (I think I mean TortoiseAct.exe) in that folder in my debugging environment.=20 Usually this works fine=2C but if my code calls cvsglue for commands (my ca= se "log")=2C the program behaves differently compared to making an installer=2C install the new version and rebooting. I= f I had installed the new version=2C my glue-commands works as expected=2C but in the debugger I get very weird = errors and cannot step through the code that needed the cvs-data from the glue-calls. This makes debugging= annoying and slow (since I remake the installer each time). The error I recieve from glue is "cvs: invalid option -- c"=2C but that opt= ion is never sent. I get this even with glue-args: "cvs.exe" "-q" "version"=2C which does not contain "--c". Is there perhaps some debugging option that I have not set=2C to allow cvs-= glue calls from the debugger? I hope that sheds some more light on my problems. I appreciate your help! Best regards=2C Sebastian Date: Mon=2C 19 Mar 2012 23:15:46 +0100 From: [email protected] To: [email protected] CC: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: Re: [TortoiseCVS] Debugging problems =20 =20 =20 =20 On 03/19/2012 09:17 AM=2C Sebastian Andersson wrote: =20 =20 =20 Hey! =20 My project is moving slowly but steadily forward=2C and I have encountered a new set of problems (yay! :-P). =20 In my current iteration=2C I'm utilizing glue to run cvs-commands for me. If I build the installer (using the autobuild script)=2C install my new version and reboot my machine the software works as expected. However=2C if I make any small change to the code=2C compile and us= e the Visual Studio debugger on=20 TortoiseAct (which has been super-great so far)=2C the glue-calls are not working. I get a error that looks like this: =20 "cvs: invalid option -- c" =20 If I would have built the installer and installed=2C this error would not appear (but this is a really slow debugging process). =20 Has this to do with .dll-file management? Does explorer get confused when I create new dlls? I=20 looked through some of the instructions on the development page=2C but I don't really understand how it all works with the dlls. =20 =20 Sebastian=2C =20 it is not entirely clear to me if you are calling TortoiseAct.exe=2C or if you are invoking the shell interface via COM (i.e. calling TortoiseShell.dll)? Can you explain how the DLLs enter the picture? =20 -Torsten = --_baf23f67-a537-4576-baaa-7d228e2da0e1_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 10pt=3B font-family:Tahoma } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'> Hello!<br><br>I'm sorry for being unclear. It was only my guess that it had= to do with dll-files=2C which was based upon<br>my code working via instal= ling and not working via debugging in Visual Studio. Also=2C when I run my = debugger<br>(as described below)=2C Visual Studio overwrites my TortoiseAct= .exe in my C:\Program Files\TortoiseCVS folder=2C<br>but leaves the Tortois= eShell.dll's as they were since the last reinstall=2C which seemed weird to= me.<br><br>I am also not 100% sure how the dll-files are acting in the deb= ugging sense. Here is what I do:<br><br>I compile and debug my code (mostly= changes in TortoiseAct project) in Visual Studio. With "debug" I mean<br>r= unning the debugger on the TortoiseAct project with added Command Arguments= =2C (in my case=2C my<br>cvs-verb plus arguments: "CVSSearch -l C:\...\work= dir"). This runs the program (I think I mean<br>TortoiseAct.exe) in that fo= lder in my debugging environment. <br><br>Usually this works fine=2C but if= my code calls cvsglue for commands (my case "log")=2C the program behaves = differently<br>compared to making an installer=2C install the new version a= nd rebooting. If I had installed the new version=2C<br>my glue-commands wor= ks as expected=2C but in the debugger I get very weird errors and cannot st= ep through<br>the code that needed the cvs-data from the glue-calls. This m= akes debugging annoying and slow (since<br>I remake the installer each time= ).<br><br>The error I recieve from glue is "cvs: invalid option -- c"=2C bu= t that option is never sent. I get this even<br>with glue-args: "cvs.exe" "= -q" "version"=2C which does not contain "--c".<br><br>Is there perhaps some= debugging option that I have not set=2C to allow cvs-glue calls from the d= ebugger?<br><br>I hope that sheds some more light on my problems.<br><br>I = appreciate your help!<br><br>Best regards=2C<br>Sebastian<br><br><div><div = id=3D"SkyDrivePlaceholder"></div><hr id=3D"stopSpelling">Date: Mon=2C 19 Ma= r 2012 23:15:46 +0100<br>From: [email protected]<br>To: zebbolo@hotmai= l.com<br>CC: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<br>Subject: Re: [Torto= iseCVS] Debugging problems<br><br> =20 <meta http-equiv=3D"Content-Type" content=3D"text/html=3B charset=3Dunicode= "> <meta name=3D"Generator" content=3D"Microsoft SafeHTML"> =20 =20 =20 On 03/19/2012 09:17 AM=2C Sebastian Andersson wrote: <blockquote cite=3D"mid:[email protected]"> <style> .ExternalClass .ecxhmmessage P {padding:0px=3B} .ExternalClass body.ecxhmmessage {font-size:10pt=3Bfont-family:Tahoma=3B} </style> <div dir=3D"ltr"> Hey!<br> <br> My project is moving slowly but steadily forward=2C and I have encountered a new set of problems (yay! :-P).<br> <br> In my current iteration=2C I'm utilizing glue to run cvs-commands for me. If I build the installer (using<br> the autobuild script)=2C install my new version and reboot my machine the software works as expected.<br> However=2C if I make any small change to the code=2C compile and us= e the Visual Studio debugger on <br> TortoiseAct (which has been super-great so far)=2C the glue-calls are not working. I get a error that looks like this:<br> <br> "cvs: invalid option -- c"<br> <br> If I would have built the installer and installed=2C this error would not appear (but this is a really<br> slow debugging process).<br> <br> Has this to do with .dll-file management? Does explorer get confused when I create new dlls? I <br> looked through some of the instructions on the development page=2C but I don't really understand<br> how it all works with the dlls.<br> </div> </blockquote> Sebastian=2C<br> <br> it is not entirely clear to me if you are calling TortoiseAct.exe=2C or if you are invoking the shell interface via COM (i.e. calling TortoiseShell.dll)? Can you explain how the DLLs enter the picture?<br> <br> -Torsten<br><br></div> </div></body> </html>= --_baf23f67-a537-4576-baaa-7d228e2da0e1_-- --===============2864451659542917945== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure --===============2864451659542917945== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ tortoisecvs-users mailing list tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users --===============2864451659542917945==--