ionic-team / ionic-team/ionic-cli

Breakpoints get out of sync when @IonicPage() parameters are on multiple lines

Đang mở
#3,050 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
needs investigation project type: ionic-angular
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description:**

When adding an @IonicPage decorator, everything is fine, but if @IoniPage parameters are written on multiple lines, breakpoints get out of sync.

**Steps to Reproduce:**
Add the following decorator on a component:
```
@IonicPage({
name: 'my-page',
segment: 'my-page/'
})
```
Then, try breakpoints in the component.

**Output:**
![image](https://user-images.githubusercontent.com/19739456/38106749-0092696a-335e-11e8-8248-221ec2a18145.png)

**My `ionic info`:**

```
cli packages: (/usr/lib/node_modules)

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.5
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node : v8.10.0
npm : 5.6.0
OS : Linux 4.9

Environment Variables:

ANDROID_HOME : /home/martialp/Android/Sdk

Misc:

backend : pro

```

**Other Information:**

There is a similar problem on the [ionic forum](https://forum.ionicframework.com/t/debugger-breakpoint-not-correct-in-chrome-mapping-wrong/109950)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.