Skip to content

🎥 Make videos programmatically with React

copywriting

Jonny Burger5f63b341c424
diff --git a/packages/docs/docs/ask-for-help.md b/packages/docs/docs/ask-for-help.md
index 7570e19cdb..aadbdfa1aa 100644
--- a/packages/docs/docs/ask-for-help.md
+++ b/packages/docs/docs/ask-for-help.md
@@ -51,3 +51,7 @@ The following might also be useful information to us:
<Step error>1</Step> Ask for support using email or direct messages. <br/>
<Step error>2</Step> Ask without <a href="/search">searching</a> the docs first. <br/>
+
+## See also
+
+- [Debugging render failures](/docs/troubleshooting/debug-failed-render)
diff --git a/packages/docs/docs/troubleshooting/debug-failed-render.md b/packages/docs/docs/troubleshooting/debug-failed-render.md
index 5b23072392..0c979e5936 100644
--- a/packages/docs/docs/troubleshooting/debug-failed-render.md
+++ b/packages/docs/docs/troubleshooting/debug-failed-render.md
@@ -1,28 +1,42 @@
---
image: /generated/articles-docs-troubleshooting-debug-failed-render.png
-sidebar_label: Debug failed render
-title: How to debug failed renders ?
+sidebar_label: Debugging render failures
+title: Debugging render failures
crumb: "Troubleshooting"
---
-When using Remotion to render videos, it's possible that your render may fail. If this happens, don't panic ! There are several steps you can follow to troubleshoot the issue.
+Since JavaScript code is executing, it may happen that a render may due to an exception. Here are general tips to troubleshoot the issue.
-- <Step>1</Step> Use the `log=verbose` flag
-
-First and foremost, it's important to mention the "log=verbose" method. This allows you to add detailed logs to your project to understand the order of execution of elements and to verify your assumptions.
+<Step>1</Step> <strong>Enable verbose logging</strong>
-- <Step>2</Step> Adding logs to your project
+By enabling more detailed logging, all `console.log` statements from your code will be made visible alongside other debugging information.
-Add logs to try to understand the order things are executing in and verifying your assumptions !
+From the CLI: Add the [`--log=verbose`](/docs/cli/render#--log) flag to your render command.
+From Node.JS: Add the [`verbose: true`](/docs/renderer/render-media#verbose-) and [`dumpBrowserLogs: true`](/docs/renderer/render-media#dumpbrowserlogs) options to `renderMedia()`.
-- <Step>3</Step> Remove components one by one
+:::note
+If you see a log multiple times, it is because the render is split up to multiple threads. Set `--concurrency=1` temporarily to only see each log once.
+:::
-Try removing components until the video is empty. At which point does the error disappear ? This can help you identify the component responsible for the render failure.
+<Step>2</Step> <strong>Adding logs to your project</strong>
-- <Step>4</Step> Github issues
+Use `console.log` in your code to understand the order things are executing in and verify your assumptions about how your code should behave.
-It's also helpful to check for issues on Github to see if other people have encountered similar problems. If you find an issue that matches your problem, you can add a comment to the issue to help the community troubleshoot the problem.
+<Step>3</Step> <strong>Remove components one by one</strong>
-- <Step>5</Step> Discord
+Remove components until the video is empty. At which point does the error disappear? This can help you identify the component responsible for the render failure.
-If you can't find a solution on Github, don't hesitate to ask for help on Discord. The community is very helpful and will be happy to assist you in troubleshooting any issues you encounter.
\ No newline at end of file
+<Step>4</Step> <strong>Search issues and documentation</strong>
+
+It's also helpful to check for [issues on GitHub](https://github.com/remotion-dev/remotion/issues) to see if other people have encountered similar problems. If you find an issue that matches your problem, you can add a comment to the issue to help the community troubleshoot the problem.
+
+Also [search the documentation](/search) which has over 300 pages and contains troubleshooting instructions for many common problems.
+
+<Step>5</Step> <strong>Ask for help</strong>
+
+You can ask for help on GitHub and Discord. [Read on to see how to get help](/docs/get-help)!
+
+## See also
+
+- [Debug failed Lambda renders](/docs/lambda/troubleshooting/debug)
+- [Ask for help](/docs/get-help)
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index f941424b62..bad5b0fe7f 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -463,6 +463,7 @@ module.exports = {
type: "category",
label: "Troubleshooting",
items: [
+ "troubleshooting/debug-failed-render",
"timeout",
"target-closed",
"media-playback-error",
@@ -481,7 +482,6 @@ module.exports = {
"troubleshooting/loading-root-component",
"troubleshooting/defaultprops-too-big",
"troubleshooting/could-not-be-parsed-as-a-value-list",
- "troubleshooting/debug-failed-render.md",
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 6144f867a3..112e9d7940 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -2012,7 +2012,7 @@ export const articles = [
},
{
id: "troubleshooting/debug-failed-render",
- title: "How to debug failed renders ?",
+ title: "Debugging render failures",
relativePath: "docs/troubleshooting/debug-failed-render.md",
compId: "articles-docs-troubleshooting-debug-failed-render",
crumb: "Troubleshooting",
diff --git a/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.png b/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.png
index 1439165cf3..338586eea3 100644
Binary files a/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.png and b/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.png differ