私は、MIEngineとclrdbgを使ってLinux上でデバッグしているプロジェクトを持っています。 Visual Studioからアプリケーションを起動すると、デバッガが正常に接続され、ブレークポイントがヒットします。システムで起動されたデーモンとしてアプリケーションを実行すると、Visual Studioはデバッガをプロセスにアタッチさせるように見えますが、出力ウィンドウに出力はありません(最初のヘッダーのほかに、デバッグで何ができるか説明していますツール)、そして私のブレークポイントのどれもヒットしません。MIEngineデバッグは起動時には動作しますが、Linuxではアタッチできません
私はVS2015を使用しており、どちらかの方法でDebug.MIDebugLaunchをコマンドウィンドウで使用しています。私は、サービスを再起動した場合(私はPROCESSIDを変更するのVisual Studioから実行中のアプリケーションに取り付けるための
<?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>
と:ここではどのような私のオプションファイルのルックのような...
は、Visual Studioからアプリケーションを起動するためですそれは)異なる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>
任意のアイデア? これはバグですか、それとも何かを更新する必要がありますか? EDIT
:
<?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>
をそして、それは動作しますが、今私は、プロセスを殺すことなく、デバッガをデタッチする方法を見つけ出すことはできません: は、私は私のオプションは次のように見えるようにファイルの「添付」に変更しました。
ここであなたのソリューションを共有してくれてありがとうございます。それを答えとしてマークすると、同じ問題を抱える他のコミュニティメンバーに役立つ可能性があります。 –
完了。前回私が机にいたときに解決策としてマークすることはできませんでした。 :) – jceddy