0

MIEngine과 clrdbg를 사용하여 Linux에서 디버깅 한 프로젝트가 있습니다. Visual Studio에서 응용 프로그램을 시작하면 디버거가 정상적으로 연결되고 중단 점이 나타납니다. 시스템에서 시작한 데몬으로 응용 프로그램을 실행하면 Visual Studio에서 디버거를 프로세스에 첨부 할 수 있지만 출력 창에는 출력이 없습니다 (초기 헤더 외에 디버깅과 관련하여 설명 된 내용이 설명되어 있음). 도구), 그리고 내 브레이크 포인트 중 누구도 공격 당하지 않습니다.MIEngine 디버깅은 Launch에서는 작동하지만 Linux에서는 Attach가되지 않습니다.

VS2015를 사용하고 있고 명령 창에서 Debug.MIDebugLaunch를 사용하고 있습니다. 여기에 비주얼 스튜디오에서 응용 프로그램 시작에 대한 내 옵션 파일의 모습처럼 ...

무엇 : 나는 서비스를 다시 시작하면 비주얼 스튜디오에서 실행중인 응용 프로그램에 부착

<?xml version="1.0" encoding="utf-8" ?> 
<PipeLaunchOptions xmlns="http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014" 
    PipePath="path-to\plink.exe" PipeArguments="-i path-to\ssh-debug.ppk [email protected] -batch -t ~/clrdbg/clrdbg --interpreter=mi" 
    TargetArchitecture="x64" MIMode="clrdbg" ExePath="dotnet" WorkingDirectory="~/workingDirectory" ExeArguments="ApplicationName.dll"> 
</PipeLaunchOptions> 

(나는 프로세스 ID를 변경하고 다른 ID로 표시됨) :

<?xml version="1.0" encoding="utf-8" ?> 
<PipeLaunchOptions xmlns="http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014" 
    PipePath="path-to\plink.exe" PipeArguments="-i path-to\ssh-debug.ppk [email protected] -batch -t ~/clrdbg/clrdbg --interpreter=mi" 
    TargetArchitecture="x64" MIMode="clrdbg" ProcessId="19036"> 
    <LaunchCompleteCommand>None</LaunchCompleteCommand> 
</PipeLaunchOptions> 

무슨 일이 일어나고 있는지 또는 무엇이 실종되었는지에 대한 아이디어가 있으십니까? 버그입니까? 아니면 무언가를 업데이트해야합니까? 편집

:

<?xml version="1.0" encoding="utf-8" ?> 
<PipeLaunchOptions xmlns="http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014" 
    PipePath="path-to\plink.exe" PipeArguments="-i path-to\ssh-debug.ppk [email protected] -batch -t ~/clrdbg/clrdbg --interpreter=mi --attach 19036" 
    TargetArchitecture="x64" MIMode="clrdbg"> 
    <LaunchCompleteCommand>None</LaunchCompleteCommand> 
</PipeLaunchOptions> 

을 그리고 그것은 작동하지만, 지금은 과정을 죽이지 않고 디버거를 분리하는 방법을 알아낼 수 없습니다 나는 나의 옵션은 다음과 같이 할 파일 "첨부"로 변경 .

답변

0

Visual C++ for Linux Development을 설치하면이 문제가 해결되어 PipeLaunchOptions의 ProcessId 속성과 함께 올바르게 작동합니다.

+0

여기에서 솔루션을 공유해 주셔서 감사합니다. 답변을 답장으로 표시하여 동일한 문제가있는 다른 커뮤니티 회원에게 도움이 될 수 있습니다. –

+0

완료. 지난 번에 내가 책상에 있었을 때 솔루션으로 표시 할 수 없었습니다. :) – jceddy

관련 문제