From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/pt-pt/tools/debugger/how_to/index.html | 11 --- .../debugger/how_to/open_the_debugger/index.html | 19 ----- .../debugger/how_to/use_a_source_map/index.html | 32 -------- files/pt-pt/tools/debugger/index.html | 62 -------------- .../tools/debugger/source_map_errors/index.html | 70 ---------------- files/pt-pt/tools/debugger/ui_tour/index.html | 95 ---------------------- 6 files changed, 289 deletions(-) delete mode 100644 files/pt-pt/tools/debugger/how_to/index.html delete mode 100644 files/pt-pt/tools/debugger/how_to/open_the_debugger/index.html delete mode 100644 files/pt-pt/tools/debugger/how_to/use_a_source_map/index.html delete mode 100644 files/pt-pt/tools/debugger/index.html delete mode 100644 files/pt-pt/tools/debugger/source_map_errors/index.html delete mode 100644 files/pt-pt/tools/debugger/ui_tour/index.html (limited to 'files/pt-pt/tools/debugger') diff --git a/files/pt-pt/tools/debugger/how_to/index.html b/files/pt-pt/tools/debugger/how_to/index.html deleted file mode 100644 index 084f1717e5..0000000000 --- a/files/pt-pt/tools/debugger/how_to/index.html +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: How to -slug: Tools/Debugger/How_to -tags: - - NeedsTranslation - - TopicStub -translation_of: Tools/Debugger/How_to ---- -
{{ToolsSidebar}}

These articles describe how to use the debugger.

- -

{{ ListSubpages () }}

diff --git a/files/pt-pt/tools/debugger/how_to/open_the_debugger/index.html b/files/pt-pt/tools/debugger/how_to/open_the_debugger/index.html deleted file mode 100644 index c6fbe553ca..0000000000 --- a/files/pt-pt/tools/debugger/how_to/open_the_debugger/index.html +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: Abrir o depurador -slug: Tools/Debugger/How_to/Open_the_debugger -translation_of: Tools/Debugger/How_to/Open_the_debugger -original_slug: Tools/Debugger/How_to/Abrir_o_depurador ---- -
{{ToolsSidebar}}
- -

Existem três maneiras para abrir o depurador:

- - - -

{{EmbedYouTube("yI5SlVQiZtI")}}

diff --git a/files/pt-pt/tools/debugger/how_to/use_a_source_map/index.html b/files/pt-pt/tools/debugger/how_to/use_a_source_map/index.html deleted file mode 100644 index 93144c1b5f..0000000000 --- a/files/pt-pt/tools/debugger/how_to/use_a_source_map/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: Utilizar um "source map" -slug: Tools/Debugger/How_to/Use_a_source_map -translation_of: Tools/Debugger/How_to/Use_a_source_map ---- -
{{ToolsSidebar}}
- -

As fontes de JavaScript executadas pelo navegador são geralmente transformadas de alguma forma a partir das fontes originais criadas por um programador. Por exemplo:

- - - -

Nessas situações, é muito mais fácil debugar o fonte original do que o fonte no estado transformado que o navegador obteve. Um source map é um arquivo que mapea da fonte transformada para a original, permitindo ao navegador reconstruir a fonte original e disponibilizá-la no debugger.

- -

Para que o navegador trabalhe com um source map, você deve:

- - - -
//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map
- -

{{EmbedYouTube("Fqd15gHC4Pg")}}

- -

No vídeo acima carregamos https://mdn.github.io/devtools-examples/sourcemaps-in-console/index.html. Essa página carrega um fonte chamado "main.js" que foi originalmente escrito em CoffeeScript e compilado para JavaScript. O fonte compilado contém um comentário assim, que aponta para o source map:

- -
//# sourceMappingURL=main.js.map
- -

No source list pane do Debugger, o fonte original CoffeeScript agora aparece como "main.coffee", e podemos acessá-lo para debugar como qualquer outra fonte.

diff --git a/files/pt-pt/tools/debugger/index.html b/files/pt-pt/tools/debugger/index.html deleted file mode 100644 index dc6feaf51b..0000000000 --- a/files/pt-pt/tools/debugger/index.html +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: Depurador -slug: Tools/Debugger -tags: - - Depurador - - Depuração - - Ferramentas - - Ferramentas de Desenvolvimento - - Firefox OS - - 'l10n:prioridade' -translation_of: Tools/Debugger ---- -
{{ToolsSidebar}}
- -
O «Depurador» de JavaScript permite-lhe explorar o código de JavaScript e examinar ou modifcar o seu estado para ajudar a rastrear erros (bugs).
- -
- -
-

{{EmbedYouTube("QK4hKWmJVLo")}}

- -

Pode-o utilizar para depurar código em execução localmente no Firefox ou em execução remotamente, por exemplo num dispositivo Android a executar o Firefox para Android. Consulte depuração remota para saber como ligar o depurador a um destino remoto.

- -

To find your way around the debugger, here's a quick tour of the UI.

-
- -

Como...

- -

Para saber o que pode fazer com o depurador, consulte os guias seguintes:

- -
- -
- -
-

Referência

- -
- -
diff --git a/files/pt-pt/tools/debugger/source_map_errors/index.html b/files/pt-pt/tools/debugger/source_map_errors/index.html deleted file mode 100644 index 4e5dfc450a..0000000000 --- a/files/pt-pt/tools/debugger/source_map_errors/index.html +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: Source map errors -slug: Tools/Debugger/Source_map_errors -tags: - - Depurador - - Depuração - - Ferramentas - - Ferramentas de Desenvolvimento - - Referencia - - Source maps -translation_of: Tools/Debugger/Source_map_errors ---- -
{{ToolsSidebar}}
- -

Source maps são ficheiros JSON que fornecem um modo para associar as fontes transformadas, como visto pelo navegador, com as suas fontes originais, conforme escrito pelo programador. Às vezes, pode encontrar problemas ao trabalhar com source maps. Esta página explica os problemas mais comuns e como os corrigir.

- -
-

Nota: se é novo para source maps, pode saber mais sobre os mesmo em How to use a source map.

-
- -

Reportar "Source map error" geral

- -

If you do see a problem, a message will appear in the webconsole. This message will show an error message, the resource URL, and the source map URL:

- -

Error from invalid JSON

- -

Here, the resource URL tells us that bundle.js mentions a source map, and the source map URL tells us where to find the source map data (in this case, relative to the resource).  The error tells us that the source map is not JSON data — so we're serving the wrong file.

- -

There are a few common ways that source maps can go wrong; they are detailed in the following sections.

- -

"Source map" está em falta ou inacessível

- -

O recurso source map pode estar em falta ou inacessível.

- -

Source map file is missing

- -

The fix here is to make sure the file is being served and is accessible to the browser

- -

"Source map" inválido

- -

The source map data can be invalid — either simply not a JSON file at all, or with an incorrect structure. Typical error messages here are:

- - - -

Error: "version" is a required argument

- -

"Source" original está em falta

- -

An original source may be missing.  You may encounter this when trying to open one of the original sources in the debugger. The message looks a little different in this case:

- -

Debugger source tab showing the error

- -

In this case, the error will also be displayed in the source tab in the debugger:

- -

Debugger source tab showing the error

- -

"NetworkError" quando tenta obter o recurso

- -

A bug in Firefox prevents it from loading source maps for web extensions.

- -

See Bug 1437937: WebExtensions Doesn't Find Source Maps for details.

- -
Source-Map-Fehler: TypeError: NetworkError when attempting to fetch resource.
- Ressourcen-Adresse: moz-extension://c7f0f003-4fcf-49fd-8ec0-c49361266581/background.js
- Source-Map-Adresse: background.js.map
- -

The only workaround is to manually change the map URL to a public one (http://localhost:1234/file.map.js) and start a local webserver at this port.

diff --git a/files/pt-pt/tools/debugger/ui_tour/index.html b/files/pt-pt/tools/debugger/ui_tour/index.html deleted file mode 100644 index 8eb582bc4e..0000000000 --- a/files/pt-pt/tools/debugger/ui_tour/index.html +++ /dev/null @@ -1,95 +0,0 @@ ---- -title: Demonstração da IU -slug: Tools/Debugger/UI_Tour -translation_of: Tools/Debugger/UI_Tour -original_slug: Tools/Debugger/Demonstracao_IU ---- -
{{ToolsSidebar}}

Este artigo é uma demonstração rápida das secções principais da interface do utilizador do 'Depurador de JavaScript'. A IU está dividida verticalmente em 3 painéis:

- - - -

- -

Painel da lista fonte

- -

The source list pane lists all the JavaScript source files loaded into the page, and enables you to select one to debug. At the top level sources are organized by origin, and under that they're organized by the directory structure from which they are served.

- -

- -

You can search for a file using Ctrl + P (Cmd + P on a Mac).

- -

Painel fonte

- -

This shows the JavaScript file currently loaded.

- -

When the source pane is focused you can search for a string in the file using Ctrl + F (Cmd + F on a Mac).

- -

Breakpoints have a blue arrow overlaid on the line number. Conditional breakpoints have an orange arrow. If you're stopped at a breakpoint, the entire line gets a green overlay. In the screenshot below there are three breakpoints:

- - - -

- -

Barra de Ferramentas

- -

No topo do painel à direita, existe uma barra de ferramentas:

- -

- -

A barra de ferramentas consiste em:

- - - -

- -

Lista de ponstos de quebra

- -

Under the toolbar, you'll see all the breakpoints you've set. Next to each breakpoint is a checkbox which you can use to enable/disable it:

- -

- -

 

- -

 

- -

Call stack

- -

 

- -

 

- -

When the debugger's paused, you'll see a call stack:

- -

Each level of the call stack gets a line, with the name of the function and the filename and line number. Clicking the line opens that source in the source pane.

- -

Scopes

- -

In the right-hand pane you'll see a label "Scopes" with a disclosure arrow next to it. When the debugger's paused, you'll be able to expand this section to see all objects that are in scope at this point in the program:

- -

Objects are organized by scope: the most local appears first, and the global scope (Window, in the case of page scripts) appears last.

-- cgit v1.2.3-54-g00ecf