firefox-devtools / firefox-devtools/vscode-firefox-debug
cannot add breakpoint in remote file because of URL encoding
- Lenguaje dominante
- TypeScript
- Estrellas
- 447
- Forks
- 76
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
When adding a breakpoint for a remote file with a path that contains special characters, Firefox is not recognized to have this file loaded.
This is because the URL for the file the breakpoint is to be set in is URL-encoded, but the URLs of the files loaded by Firefox are not.
As a consequence, the target file's URL is not regarded as equal to itself by [this function](https://github.com/firefox-devtools/vscode-firefox-debug/blob/1bea96d85f02c3fd3361bcd789d258f0df99b92a/src/adapter/util/misc.ts#L10) which leads to it not being found in the list of sources.
Guía de contribución
Línea de trabajo
Comienza leyendo la función de comparación de URL en src/adapter/util/misc.ts, enlazada desde el issue, y sigue cómo se compara el destino del breakpoint con la lista de fuentes cargadas de Firefox. Reproduce el caso con una ruta de archivo remota que contenga caracteres especiales y, después, verifica que el breakpoint reconoce el archivo cargado a pesar de la diferencia en la codificación de la URL.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript, vscode
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 65/100