[CMake] VisualStudio debug command
David Cole
david.cole at kitware.com
Wed Mar 29 08:50:46 EST 2006
From a "Visual Studio Command Prompt" type "devenv /?"...
You should be able to use a command line like this to invoke the
debugger on a given exe with a given command line:
"C:\full\path\to\devenv" "C:\full\path\to\your.exe" /run /debugexe arg1
arg2 arg3
The problem is, if you specify a .exe like this, it prompts you to save
a "wrapper sln" file next to the exe the first time you do it. Then you
can specify that wrapper .sln file on subsequent runs...
Play around with it. I'm sure there's *almost* a way to do what you
want... :-)
Hope this helps,
David
Luigi Calori wrote:
> Ian.Appru at ubs.com wrote:
>
>> Hi Luigi,
>>
>> I believe debugging info is held in a binary file - *.suo for vc7 - so
>> would be tricky to set using cmake without using the vcproject
>> automation engine.
>>
>> Ian
>>
>> -----Original Message-----
>> From: cmake-bounces+ian.appru=ubs.com at cmake.org
>> [mailto:cmake-bounces+ian.appru=ubs.com at cmake.org] On Behalf Of Luigi
>> Calori
>> Sent: 28 March 2006 12:45
>> To: cmake at cmake.org
>> Subject: [CMake] VisualStudio debug command
>>
>> Probably newby question:
>>
>> Under Visual Studio, at least from VS 7, a project can have debugging
>> command and command arguments.
>> Is it possible to set them in a CMakeFile ?
>>
>> Thanks a lot
>> Luigi
>>
>>
> Ok, it' s a pity: we are developing ActiveX and Moxilla plugins, so,
> in either cases, we need to debug our plugin by starting IE or Firefox
> with a
> specific test.html that, in turns, start our plugin.
> SO we currently set Visual Studio debug parameters. within the user
> interface.
> We would like to use CMake for producing the vcprojects, so we would
> like to find a way to reprouce actual projects with CMake.
>
> Alternatively is there a way to run the debugger from the command
> line, so being able CMake to configure a .bat file to run
> the debugger with specific parameters?
>
> thanks again
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list