Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# MIEngine调试适用于启动,但不适用于Linux_C#_Visual Studio_Debugging_Visual Studio 2015_Asp.net Core - Fatal编程技术网

C# MIEngine调试适用于启动,但不适用于Linux

C# MIEngine调试适用于启动,但不适用于Linux,c#,visual-studio,debugging,visual-studio-2015,asp.net-core,C#,Visual Studio,Debugging,Visual Studio 2015,Asp.net Core,我有一个项目,我一直在使用MIEngine和clrdbg在Linux上调试。当我从VisualStudio启动应用程序时,调试器连接良好,我的断点被命中。如果我以系统启动的守护进程的形式运行应用程序,Visual Studio似乎允许我将调试器附加到进程,但输出窗口中没有输出(除了解释允许我使用调试工具执行的操作的初始标题之外),并且我的任何断点都不会被命中 我在命令窗口中使用VS2015和Debug.MIDebugLaunch。以下是我的选项文件的外观 要从Visual Studio启动应用程

我有一个项目,我一直在使用MIEngine和clrdbg在Linux上调试。当我从VisualStudio启动应用程序时,调试器连接良好,我的断点被命中。如果我以系统启动的守护进程的形式运行应用程序,Visual Studio似乎允许我将调试器附加到进程,但输出窗口中没有输出(除了解释允许我使用调试工具执行的操作的初始标题之外),并且我的任何断点都不会被命中

我在命令窗口中使用VS2015和Debug.MIDebugLaunch。以下是我的选项文件的外观

要从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 user@machinename -batch -t ~/clrdbg/clrdbg --interpreter=mi"
  TargetArchitecture="x64" MIMode="clrdbg" ExePath="dotnet" WorkingDirectory="~/workingDirectory" ExeArguments="ApplicationName.dll">
</PipeLaunchOptions>

用于从Visual Studio附加到正在运行的应用程序(如果我重新启动服务,并且它以不同的ID出现,我会更改ProcessId):


没有一个
对可能发生的事情或我错过的东西有什么想法吗? 这是一个bug,还是我可能需要更新一些东西

编辑: 我将“附加”选项文件更改为如下所示:

<?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 user@machinename -batch -t ~/clrdbg/clrdbg --interpreter=mi --attach 19036"
  TargetArchitecture="x64" MIMode="clrdbg">
  <LaunchCompleteCommand>None</LaunchCompleteCommand>
</PipeLaunchOptions>

没有一个

它是可以工作的,但现在我不知道如何在不终止进程的情况下分离调试器。

安装已修复了该问题,并使其与PipeLaunchOptions的ProcessId属性一起正常工作。

感谢在此处共享您的解决方案,您可以将其标记为答案,所以它可以帮助其他社区成员解决同样的问题。上次我在办公桌前时,还没能将其标记为解决方案。:)
<?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 user@machinename -batch -t ~/clrdbg/clrdbg --interpreter=mi --attach 19036"
  TargetArchitecture="x64" MIMode="clrdbg">
  <LaunchCompleteCommand>None</LaunchCompleteCommand>
</PipeLaunchOptions>