ionic-team / ionic-team/ionic-cli
Breakpoints get out of sync when @IonicPage() parameters are on multiple lines
- Linguagem predominante
- TypeScript
- Estrelas
- 2k
- Forks
- 682
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
**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:**

**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)
Guia de contribuição
Direção de pesquisa
Reproduce the issue with the multiline @IonicPage decorator shown in the report, then trace the Ionic CLI entry point responsible for compiling or serving the component and its breakpoint mapping. Compare breakpoint locations with single-line and multiline decorator parameters; done means breakpoints resolve to the correct component lines.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- typescript
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100