VScode新手问题,调试过程出现Unable to perform this action because the process is running.

mecil9 2016-12-10 06:21:05
调试在VScode下调试C#官网例子

运行出现:Unable to perform this action because the process is running.

停止debug后,扔出“..../Debug/netcoreapp1.1/projectApp.dll' has exited with code 0 (0x00000000).”错误

请问怎么回事?我需要修改launch.json什么地方?

launch.json:
{
"version": "0.2.0",
"configurations": [{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.1/projectApp.dll",
"args": [],
"cwd": "${workspaceRoot}",
"externalConsole": false,
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command.pickProcess}"
}
]
}

...全文
3714 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
誓言0817 2019-11-05
  • 打赏
  • 举报
回复 2
引用 1 楼 nuaa_meteor 的回复:
改成"externalConsole": true就好了
你好,如果我不想使用弹出的窗口而是用下方的调试控制台和终端进行调试,该怎么处理?
nuaa_meteor 2017-06-19
  • 打赏
  • 举报
回复
改成"externalConsole": true就好了

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧