aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/tools/debugger
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/pt-pt/tools/debugger
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/pt-pt/tools/debugger')
-rw-r--r--files/pt-pt/tools/debugger/how_to/index.html11
-rw-r--r--files/pt-pt/tools/debugger/how_to/open_the_debugger/index.html19
-rw-r--r--files/pt-pt/tools/debugger/how_to/use_a_source_map/index.html32
-rw-r--r--files/pt-pt/tools/debugger/index.html62
-rw-r--r--files/pt-pt/tools/debugger/source_map_errors/index.html70
-rw-r--r--files/pt-pt/tools/debugger/ui_tour/index.html95
6 files changed, 0 insertions, 289 deletions
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
----
-<div>{{ToolsSidebar}}</div><p><span class="seoSummary">These articles describe how to use the debugger.</span></p>
-
-<p>{{ ListSubpages () }}</p>
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
----
-<div>{{ToolsSidebar}}</div>
-
-<p>Existem três maneiras para abrir o depurador:</p>
-
-<ul>
- <li>Selecione "Depurador" no submenu de "Ferramentas de Programação" no Menu do Firefox (ou no menu de Ferramentas se exibe a barra do menu ou está num Mac OS X)</li>
- <li>
- <p>Pressione <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Z</kbd> no Windows e no Linux, ou <kbd>Cmd</kbd> + <kbd>Opt</kbd> + <kbd>Z</kbd> no macOS (a partir do Firefox 71; anterior ao Firefox 66, a letra neste atalho era S).</p>
- </li>
- <li>Clique no botão ( <img alt="new fx menu" class="frameless wiki-image" src="https://mdn.mozillademos.org/files/12712/hamburger.png" style="height: 20px; width: 22px;" title=""> ) Menu, selecione "Ferramentas de programação", depois "Depurador".</li>
-</ul>
-
-<p>{{EmbedYouTube("yI5SlVQiZtI")}}</p>
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
----
-<div>{{ToolsSidebar}}</div>
-
-<p>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:</p>
-
-<ul>
- <li><em>sources</em> são geralmente combinadas e <a href="https://en.wikipedia.org/wiki/Minification_(programming)">reduzidas</a> para tornar mais eficiente a entrega das mesmas a partir do servidor.</li>
- <li>O JavaScript em execução numa página é geralmente gerado por máquina, como quando compilado a partir de um idioma como <a href="http://coffeescript.org/">CoffeeScript</a> ou <a href="http://www.typescriptlang.org/">TypeScript</a>.</li>
-</ul>
-
-<p>Nessas situações, é muito mais fácil debugar o fonte original do que o fonte no estado transformado que o navegador obteve. Um <a href="http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/">source map</a> é um arquivo que mapea da fonte transformada para a original, permitindo ao navegador reconstruir a fonte original e disponibilizá-la no debugger.</p>
-
-<p>Para que o navegador trabalhe com um source map, você deve:</p>
-
-<ul>
- <li>gerar o source map</li>
- <li>incluir um comentário no arquivo transformado que aponte para o source map. A sintaxe do comentário é assim:</li>
-</ul>
-
-<pre class="brush: js notranslate"><code>//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map</code></pre>
-
-<p>{{EmbedYouTube("Fqd15gHC4Pg")}}</p>
-
-<p>No vídeo acima carregamos <a href="https://mdn.github.io/devtools-examples/sourcemaps-in-console/index.html">https://mdn.github.io/devtools-examples/sourcemaps-in-console/index.html</a>. 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:</p>
-
-<pre class="brush: js notranslate"><code>//# sourceMappingURL=main.js.map</code></pre>
-
-<p>No <a href="/en-US/docs/Tools/Debugger/UI_Tour#Source_list_pane">source list pane</a> do Debugger, o fonte original CoffeeScript agora aparece como "main.coffee", e podemos acessá-lo para debugar como qualquer outra fonte.</p>
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
----
-<div>{{ToolsSidebar}}</div>
-
-<div>O «Depurador» de JavaScript permite-lhe explorar o código de JavaScript e examinar ou modifcar o seu estado para ajudar a rastrear erros (<em>bugs</em>).</div>
-
-<div></div>
-
-<div>
-<p>{{EmbedYouTube("QK4hKWmJVLo")}}</p>
-
-<p>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 <a href="/pt-PT/docs/Tools/Remote_Debugging">depuração remota </a>para saber como ligar o depurador a um destino remoto.</p>
-
-<p>To find your way around the debugger, here's a <a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/UI_Tour">quick tour of the UI</a>.</p>
-</div>
-
-<h2 id="Como...">Como...</h2>
-
-<p>Para saber o que pode fazer com o depurador, consulte os guias seguintes:</p>
-
-<div class="twocolumns">
-<ul>
- <li><a href="/pt-PT/docs/Tools/Debugger/How_to/Abrir_o_depurador">Abrir o depurador</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Set_a_breakpoint">Set a breakpoint</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Set_a_conditional_breakpoint">Set a conditional breakpoint</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/Set_an_XHR_breakpoint">Set an XHR breakpoint</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/Set_a_logpoint">Set a logpoint</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/Set_event_listener_breakpoints">Set event listener breakpoints</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Disable_breakpoints">Disable breakpoints</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Step_through_code">Step through code</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Breaking_on_exceptions">Break on exceptions</a></li>
- <li><a href="https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Set_Watch_Expressions">Set watch expressions</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/Debug_worker_threads">Debug worker threads</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Pretty-print_a_minified_file">Pretty-print a minified file</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Search">Search</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Debug_eval_sources">Debug eval sources</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map">Use a source map</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_watchpoints">Use watchpoints</a></li>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Tools/Debugger/Break_on_DOM_mutation">Break on DOM Mutation</a></li>
-</ul>
-</div>
-
-<hr>
-<h2 id="Referência">Referência</h2>
-
-<div class="twocolumns">
-<ul>
- <li><a href="/pt-PT/docs/Tools/Debugger/Atalhos_de_teclado">Atalhos de teclado</a></li>
- <li><a href="/pt-PT/docs/Tools/Debugger/Source_map_errors">Source map errors</a></li>
- <li></li>
-</ul>
-</div>
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
----
-<div>{{ToolsSidebar}}</div>
-
-<p class="summary"><em>Source maps</em> 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 <em>source maps</em>. Esta página explica os problemas mais comuns e como os corrigir.</p>
-
-<div class="note">
-<p><strong>Nota</strong>: se é novo para <em>source maps</em>, pode saber mais sobre os mesmo em <a href="/pt-PT/docs/Tools/Debugger/How_to/Use_a_source_map">How to use a source map</a>.</p>
-</div>
-
-<h2 id="Reportar_Source_map_error_geral">Reportar "Source map error" geral</h2>
-
-<p>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:</p>
-
-<p><img alt="Error from invalid JSON" src="https://mdn.mozillademos.org/files/15423/invalid-json.png" style="border-style: solid; border-width: 1px; display: block; height: 57px; margin: 0px auto; width: 744px;"></p>
-
-<p>Here, the resource URL tells us that <code>bundle.js</code> 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.</p>
-
-<p>There are a few common ways that source maps can go wrong; they are detailed in the following sections.</p>
-
-<h2 id="Source_map_está_em_falta_ou_inacessível">"Source map" está em falta ou inacessível</h2>
-
-<p>O recurso <em>source map</em> pode estar em falta ou inacessível.</p>
-
-<p><img alt="Source map file is missing" src="https://mdn.mozillademos.org/files/15429/missing-map.png" style="border-style: solid; border-width: 1px; display: block; height: 42px; margin: 0px auto; width: 733px;"></p>
-
-<p>The fix here is to make sure the file is being served and is accessible to the browser</p>
-
-<h2 id="Source_map_inválido">"Source map" inválido</h2>
-
-<p>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:</p>
-
-<ul>
- <li><code>SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data</code></li>
- <li><code>Error: "version" is a required argument</code></li>
-</ul>
-
-<p><img alt='Error: "version" is a required argument' src="https://mdn.mozillademos.org/files/15425/missing-field.png" style="border-style: solid; border-width: 1px; display: block; height: 45px; margin: 0px auto; width: 743px;"></p>
-
-<h2 id="Source_original_está_em_falta">"Source" original está em falta</h2>
-
-<p>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:</p>
-
-<p><img alt="Debugger source tab showing the error" src="https://mdn.mozillademos.org/files/15421/Screenshot%20from%202017-09-15%2014-32-02.png" style="border-style: solid; border-width: 1px; display: block; height: 35px; margin: 0px auto; width: 727px;"></p>
-
-<p>In this case, the error will also be displayed in the source tab in the debugger:</p>
-
-<p><img alt="Debugger source tab showing the error" src="https://mdn.mozillademos.org/files/15427/debugger-tab.png" style="border-style: solid; border-width: 1px; display: block; height: 109px; margin: 0px auto; width: 616px;"></p>
-
-<h2 id="NetworkError_quando_tenta_obter_o_recurso">"NetworkError" quando tenta obter o recurso</h2>
-
-<p>A bug in Firefox prevents it from loading source maps for web extensions.</p>
-
-<p>See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1437937">Bug 1437937: WebExtensions Doesn't Find Source Maps</a> for details.</p>
-
-<pre class="syntaxbox"><span class="message-body-wrapper"><span class="message-flex-body"><span class="devtools-monospace message-body">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</span></span></span></pre>
-
-<p>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.</p>
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
----
-<div>{{ToolsSidebar}}</div><p>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:</p>
-
-<ul>
- <li><a href="/en-US/docs/Tools/Debugger/UI_Tour#Source_list_pane">Painel da lista fonte</a></li>
- <li><a href="/en-US/docs/Tools/Debugger/UI_Tour#Source_pane">Painel fonte</a></li>
- <li>Um terceiro painel que está subdividido em quatro secções:
- <ul>
- <li><a href="/en-US/docs/Tools/Debugger/UI_Tour#Toolbar">Barra de ferramentas</a></li>
- <li><a href="/en-US/docs/Tools/Debugger/UI_Tour#Breakpoints_list">Breakpoints list</a></li>
- <li><a href="/en-US/docs/Tools/Debugger/UI_Tour#Call_stack">Call stack</a></li>
- <li><a href="/en-US/docs/Tools/Debugger/UI_Tour#Scopes">Scopes</a></li>
- </ul>
- </li>
-</ul>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14977/debugger-screen-main-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;"></p>
-
-<h2 id="Painel_da_lista_fonte">Painel da lista fonte</h2>
-
-<p>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.</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14975/debugger-source-list-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;"></p>
-
-<p>You can <a href="/en-US/docs/Tools/Debugger/How_to/Search#Searching_for_files">search for a file</a> using <kbd>Ctrl</kbd> + <kbd>P</kbd> (<kbd>Cmd</kbd> + <kbd>P</kbd> on a Mac).</p>
-
-<h2 id="Painel_fonte">Painel fonte</h2>
-
-<p>This shows the JavaScript file currently loaded.</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14973/debugger-source-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;">When the source pane is focused you can <a href="/en-US/docs/Tools/Debugger/How_to/Search#Searching_within_a_file">search for a string in the file</a> using <kbd>Ctrl</kbd> + <kbd>F</kbd> (<kbd>Cmd</kbd> + <kbd>F</kbd> on a Mac).</p>
-
-<p><a href="/en-US/docs/Tools/Debugger/How_to/Set_a_breakpoint">Breakpoints</a> have a blue arrow overlaid on the line number. <a href="/en-US/docs/Tools/Debugger/How_to/Set_a_conditional_breakpoint">Conditional breakpoints</a> 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:</p>
-
-<ul>
- <li>line 19 has a normal breakpoint</li>
- <li>line 40 has a normal breakpoint, and the debugger is paused there</li>
- <li>line 22 has a conditional breakpoint.</li>
-</ul>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14981/debugger-main-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;"></p>
-
-<h2 id="Barra_de_Ferramentas"><a name="toolbar">Barra de Ferramentas</a></h2>
-
-<p>No topo do painel à direita, existe uma barra de ferramentas:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14971/debugger-toolbar-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;"></p>
-
-<p>A barra de ferramentas consiste em:</p>
-
-<ul>
- <li>four buttons to <a href="/en-US/docs/Tools/Debugger/How_to/Step_through_code">control the debugger's movement through the script</a>:
-
- <ul>
- <li><strong>Play/pause</strong> (F8): pauses or resumes execution of the script you're debugging. When it displays a "play" icon, that means the script is paused, either because you've paused it with this button or because you've hit a breakpoint.</li>
- <li><strong>Step over</strong> (F10): steps across the current line of JavaScript code.</li>
- <li><strong>Step in</strong> (F11): steps into the function call on the current line of JavaScript code.</li>
- <li><strong>Step out</strong> (Shift-F11): runs the script until the current function exits.</li>
- </ul>
- </li>
- <li>a button to control whether to <a href="/en-US/docs/Tools/Debugger/How_to/Breaking_on_exceptions">(1) ignore all exceptions, (2) break on uncaught exceptions, or (3) break on all exceptions</a>.</li>
-</ul>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14979/debugger-toolbar-zoom-2.png" style="display: block; height: 231px; margin-left: auto; margin-right: auto; width: 536px;"></p>
-
-<h2 id="Lista_de_ponstos_de_quebra">Lista de ponstos de quebra</h2>
-
-<p>Under the toolbar, you'll see all the breakpoints you've set. Next to each breakpoint is a checkbox which you can use to <a href="/en-US/docs/Tools/Debugger/How_to/Disable_breakpoints">enable/disable it</a>:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14969/debugger-breakpoints-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;"></p>
-
-<p> </p>
-
-<p> </p>
-
-<h2 id="Call_stack">Call stack</h2>
-
-<p> </p>
-
-<p> </p>
-
-<p>When the debugger's paused, you'll see a call stack:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14967/debugger-call-stack-2.png" style="display: block; height: 1138px; margin-left: auto; margin-right: auto; width: 1113px;">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.</p>
-
-<h2 id="Scopes">Scopes</h2>
-
-<p>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:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/14965/debugger-scopes-2.png" style="display: block; height: 758px; margin-left: auto; margin-right: auto; width: 1113px;">Objects are organized by scope: the most local appears first, and the global scope (Window, in the case of page scripts) appears last.</p>