Re: Debugging in Visual Studio 2012
Michael Sieben <[email protected]> Mon, 24 Jun 2013 12:57:15 +0200
| Newsgroups | gmane.games.torcs.devel |
|---|---|
| Message-ID | <CAORBCVzsf2W+NoYrTQAae2jRDvaR3pyqOp5GqWQ6xxw1THLTzw@mail.gmail.com> |
--===============8429474246368685097== Content-Type: multipart/alternative; boundary=047d7b3a8b66852da804dfe44606 --047d7b3a8b66852da804dfe44606 Content-Type: text/plain; charset=ISO-8859-1 Hi Bernhard, thanks alot. The debugging-properties did the job. One more question regarding developing in VisualStudio: Is there a handy way to export all robot data (XMLs, RGBs, subdirs etc) from the source tree to runtime / runtimed when compiling? (like "make install" in linux) For now i create all but the *.dll manually. best regards McCriddle 2013/6/20 Bernhard Wymann <[email protected]> > Hi McCriddle > > Of course you can. I can just speak for VS2008, that's the version I am > currently using (apart from VS 6). There it is very easy to achieve: > - Go to the properties tab, then into debugging for the debug version, > there you fill in what to run (wtorcs.exe and the current working directory > of it), then you should be able to hit F5 to run it out of the IDE and > using full debugging. > > An alternative is to place a "DebugBreak()" statement in the main.cpp, > then the window to attach to the process pops up. > > Hope this helps > > Bernhard > > > On 06/14/2013 10:34 AM, Michael Sieben wrote: > >> Hi, >> >> i have a question to some more experienced users of Visual Studio. >> >> I got Torcs 1.3.4 and my own robots to compile in VS and can run >> wtorcs.exe from runtime and/or runtimed. >> >> >> >> But is it possible to modify the configuration so i could run and debug >> torcs with VS? (e.g. use breakpoints, step by step, and inspect >> variables and classes directly with the VS builtin functions) >> >> >> Thanks in advance to any help. >> >> best regards >> McCriddle >> >> >> ------------------------------**------------------------------** >> ------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-**dev2dev<http://p.sf.net/sfu/windows-dev2dev> >> >> >> >> ______________________________**_________________ >> Torcs-devel mailing list >> [email protected].**net <[email protected]> >> https://lists.sourceforge.net/**lists/listinfo/torcs-devel<https://lists.sourceforge.net/lists/listinfo/torcs-devel> >> >> > --047d7b3a8b66852da804dfe44606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Bernhard,<div><br></div><div style>thanks alot. The deb= ugging-properties did the job.</div><div style><br></div><div style>One mor= e question regarding developing in VisualStudio:</div><div style><br></div> <div style>Is there a handy way to export all robot data (XMLs, RGBs, subdi= rs etc) from the source tree to runtime / runtimed when compiling? (like &q= uot;make install" in linux)</div><div style><br></div><div style>For n= ow i create all but the *.dll manually.</div> <div style><br></div><div style>best regards</div><div style>McCriddle</div= ></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2013/6= /20 Bernhard Wymann <span dir=3D"ltr"><<a href=3D"mailto:berniw@bluewin.= ch" target=3D"_blank">[email protected]</a>></span><br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Hi McCriddle<br> <br> Of course you can. I can just speak for VS2008, that's the version I am= currently using (apart from VS 6). There it is very easy to achieve:<br> - Go to the properties tab, then into debugging for the debug version, ther= e you fill in what to run (wtorcs.exe and the current working directory of = it), then you should be able to hit F5 to run it out of the IDE and using f= ull debugging.<br> <br> An alternative is to place a "DebugBreak()" statement in the main= .cpp, then the window to attach to the process pops up.<br> <br> Hope this helps<br> <br> Bernhard<div><div class=3D"h5"><br> <br> On 06/14/2013 10:34 AM, Michael Sieben wrote:<br> </div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo= rder-left:1px #ccc solid;padding-left:1ex"><div><div class=3D"h5"> Hi,<br> <br> i have a question to some more experienced users of Visual Studio.<br> <br> I got Torcs 1.3.4 and my own robots to compile in VS and can run<br> wtorcs.exe from runtime and/or runtimed.<br> <br> <br> <br> But is it possible to modify the configuration so i could run and debug<br> torcs with VS? (e.g. use breakpoints, step by step, and inspect<br> variables and classes directly with the VS builtin functions)<br> <br> <br> Thanks in advance to any help.<br> <br> best regards<br> McCriddle<br> <br> <br></div></div> ------------------------------<u></u>------------------------------<u></u>-= -----------------<br> This SF.net email is sponsored by Windows:<br> <br> Build for Windows Store.<br> <br> <a href=3D"http://p.sf.net/sfu/windows-dev2dev" target=3D"_blank">http://p.= sf.net/sfu/windows-<u></u>dev2dev</a><br> <br> <br> <br> ______________________________<u></u>_________________<br> Torcs-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Torc= [email protected].<u></u>net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/torcs-devel" target= =3D"_blank">https://lists.sourceforge.net/<u></u>lists/listinfo/torcs-devel= </a><br> <br> </blockquote> <br> </blockquote></div><br></div> --047d7b3a8b66852da804dfe44606-- --===============8429474246368685097== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev --===============8429474246368685097== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Torcs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-devel --===============8429474246368685097==--