Well, I played around with it as much as I had time for. This isn't really a big deal for me since I will always have my primary solution open in visual studio, but it points to not currently being able to use Zeus IDE as my one stop shop if I decided to do so, which makes me sad.
What it appears that MS includes now to debug managed code from the command line is MDBG (
http://msdn.microsoft.com/en-us/library ... .100).aspx). This is a more full featured debugger, however, and I couldn't get it integrated.
I use a batch file to do 'gets' from TFS, and I hacked that apart to do much of what the vsvars.bat file does in my own batch files, instead of having to append to the run of that to have the variables set. So I used this, and then sent the executable for the entry point for my solution to the batch file as a parameter to pass on to MDBG.
This works flawlessly. But since it is an integrated debugger, the return isn't what I expect- when it hits an error or breakpoint, it returns some sort of code, then quits... this all shows up in the tools window. But it doesn't as it stands allow me to debug.
In case you pursue this in future versions, I'm including below what I have done.
Tools Options
Program Type: Executable
Menu Text: MS Debugger '$PB.exe'
Program Name: C:\WINDOWS\System32\cmd.exe
Arguments: /k "C:\Development\Run\RunDebugger.bat "$PDD\bin\debug\$PB.exe""
Work Directory: $fdd
RunDebugger.bat
Code: Select all
REM *********************************
REM This batch file will run the msdbg commandline debugger for the supplied executable
REM *********************************
@call :GetVSCommonToolsDir
@if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLSDIR
@call "%VS100COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
call "%VSINSTALLDIR%\VC\bin\vcvars32.bat"
@if "%1"=="" goto error_no_parameter
@if EXIST "%1" (
mdbg "%1"
) else (
goto error_no_executable
)
@goto end
@REM -----------------------------------------------------------------------
:GetVSCommonToolsDir
@set VS100COMNTOOLS=
@call :GetVSCommonToolsDirHelper32 HKLM > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper32 HKCU > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper64 HKLM > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper64 HKCU > nul 2>&1
@exit /B 0
:GetVSCommonToolsDirHelper32
@for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v "10.0"') DO (
@if "%%i"=="10.0" (
@SET "VS100COMNTOOLS=%%k"
)
)
@if "%VS100COMNTOOLS%"=="" exit /B 1
@SET "VS100COMNTOOLS=%VS100COMNTOOLS%Common7\Tools\"
@exit /B 0
:GetVSCommonToolsDirHelper64
@for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7" /v "10.0"') DO (
@if "%%i"=="10.0" (
@SET "VS100COMNTOOLS=%%k"
)
)
@if "%VS100COMNTOOLS%"=="" exit /B 1
@SET "VS100COMNTOOLS=%VS100COMNTOOLS%Common7\Tools\"
@exit /B 0
@REM -----------------------------------------------------------------------
:error_no_VS100COMNTOOLSDIR
@echo ERROR: Cannot determine the location of the VS Common Tools folder.
@goto end
:error_no_VSINSTALLDIR
@echo ERROR: Cannot determine the location of the VS installation.
@goto end
:error_no_parameter
@echo ERROR: executable to debug not supplied
@goto end
:error_no_executable
@echo ERROR: supplied executable does not exist - "%1"
@goto end
:end
Thanks for your help, though! And let me know if you have any further questions!