alibaba / alibaba/serverless-vscode

netcore2.1 win10无法debug

Open
#237 1 comment 0 reactions 1 assignee Claimed by @ChanDaoH View on GitHub
bug
Dominant language
TypeScript
Stars
289
Forks
38
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
· win10企业版vscode里无法Local Run和Local Debug
· mac 环境 vscode 正常

**To Reproduce**
Steps to reproduce the behavior:
1.新建netcore2.1的函数
2. 函数右键 Local Debug
3.终端提示function compute app listening on port 8000!
4.点击访问连接,终端报错

**Expected behavior**
Failed to initialize CoreCLR, HRESULT: 0x80004005
2020/06/01 06:53:41 exit status 137

大部分都提示这个错误,有时候也会有no such container.
通过docker 清理image后,重新调试也无法解决。

**Screenshots**
![1590994788(1)](https://user-images.githubusercontent.com/771326/83384054-013af480-a419-11ea-8c73-5ba9494012bf.png)

**Desktop (please complete the following information):**
- OS: win10 ent
- VSCode Version:1.27.11
- Aliyun Serverless Extension Version [e.g. 1.2.0]

- fun: 3.6.13
- image:
aliyunfc/runtime-dotnetcore2.1 1.9.5
registry.cn-beijing.aliyuncs.com/aliyunfc/runtime-dotnetcore2.1 1.9.5

**Additional context**
ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
mywebfuns:
Type: 'Aliyun::Serverless::Service'
Properties:
Description: This is mywebfuns service
myfun01:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: 'project::example.App::HandleRequest'
Runtime: dotnetcore2.1
Timeout: 60
MemorySize: 512
CodeUri: mywebfuns\myfun01
Events:
httpTrigger:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods:
- GET
- POST
myfun02:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: 'project::example.App::HandleRequest'
Runtime: dotnetcore2.1
Timeout: 60
MemorySize: 512
CodeUri: mywebfuns/myfun02
Events:
httpTrigger:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods:
- GET
- POST
myfun03:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: 'project::example.App::HandleRequest'
Runtime: dotnetcore2.1
Timeout: 60
MemorySize: 512
CodeUri: mywebfuns\myfun03
Events:
httpTrigger:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods:
- GET
- POST

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.