{"id":9270,"date":"2022-04-05T12:21:29","date_gmt":"2022-04-05T16:21:29","guid":{"rendered":"https:\/\/kb.n0c.com\/?post_type=ht_kb&#038;p=9270"},"modified":"2025-03-04T08:40:39","modified_gmt":"2025-03-04T13:40:39","slug":"debugging-a-nodejs-ruby-or-python-application-with-n0c","status":"publish","type":"ht_kb","link":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/","title":{"rendered":"How to Debug a Node.js, Ruby or Python Application"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>On our N0C servers, we use <strong>Passenger<\/strong> to run your Node.js, Ruby and Python applications. When an error occurs in an application using one of these programming languages, a page like the one below will be displayed:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"187\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png\" alt=\"\" class=\"wp-image-6230\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png 586w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-300x96.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-50x16.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-60x19.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-100x32.png 100w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/a><\/figure>\n\n\n\n<p>This page is not very explanatory. Activating the development mode will allow further investigation and find the cause of the problem. The detailed error display simplifies the analysis and correction of the problem.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note :<\/strong> <meta charset=\"utf-8\">The&nbsp;<a href=\"https:\/\/kb.n0c.com\/en\/glossary\/\" data-type=\"URL\" data-id=\"https:\/\/kb.n0c.com\/en\/glossary\/\">Glossary of N0C<\/a>&nbsp;contains explanations on multiple topics and can be consulted to clarify certain terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"D\u00e9bogaged'uneapplicationNodeJS,RubyouPython-Activationdumodeded\u00e9veloppement\">Activation of the Development Mode<\/h2>\n\n\n\n<p>In order to activate the development mode, you must modify the .htaccess file linked to your application. Warning: the folder containing the .htaccess file is not the same as the one containing the source files of the application.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can find the folder that contains the .htaccess of the application by going to the &#8220;File Manager&#8221; option of your N0C panel. On this page, you will be able to find all your domains as well as the root of the document linked to this domain (please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use the File Manager<\/a>).<\/li>\n<\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Once you have found the .htaccess file, you will be able to modify this file by editing it via the N0C file manager and via FTP (please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/ftp-remote-connections\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Connect to Your Hosting Using FTP and Send Files<\/a>).<\/li>\n\n\n\n<li>You will find a section in the comments entitled &#8220;# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION&#8221;.&nbsp;You should not modify the content between these lines. It is after this section that you will have to add the code necessary to activate the development mode. Here is the code to add:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"># DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGIN\n...\n# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION END\n\n\nPassengerFriendlyErrorPages on\nPassengerAppEnv development<\/pre>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note :<\/strong> If you want to disable the development mode after the problem has been fixed, just change these lines like this:<br><br><meta charset=\"utf-8\">PassengerFriendlyErrorPages off <br>PassengerAppEnv production<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Once the development mode is activated, a detailed error page will be displayed and will allow you to know the error.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Introduction On our N0C servers, we use Passenger to run your Node.js, Ruby and Python applications. When an error occurs in an application using one of these programming languages, a page like the one below will be displayed: This page is not very explanatory. Activating the development mode will allow&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[163],"ht-kb-tag":[489,485],"class_list":["post-9270","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-languages","ht_kb_tag-debugging","ht_kb_tag-development-mode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Debugging a Node.js, Ruby or Python Application<\/title>\n<meta name=\"description\" content=\"Debuging a Node.js, Ruby or Python application in development mode when the error &quot;We&#039;re sorry, but something went wrong&quot; is displayed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Debugging a Node.js, Ruby or Python Application\" \/>\n<meta property=\"og:description\" content=\"Debuging a Node.js, Ruby or Python application in development mode when the error &quot;We&#039;re sorry, but something went wrong&quot; is displayed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/\" \/>\n<meta property=\"og:site_name\" content=\"N0C KB\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-04T13:40:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/\",\"name\":\"Debugging a Node.js, Ruby or Python Application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Langages_debogage.png\",\"datePublished\":\"2022-04-05T16:21:29+00:00\",\"dateModified\":\"2025-03-04T13:40:39+00:00\",\"description\":\"Debuging a Node.js, Ruby or Python application in development mode when the error \\\"We're sorry, but something went wrong\\\" is displayed.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Langages_debogage.png\",\"contentUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Langages_debogage.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/debugging-a-nodejs-ruby-or-python-application-with-n0c\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Debug a Node.js, Ruby or Python Application\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/\",\"name\":\"N0C KB\",\"description\":\"Official documentation of the N0C hosting platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kb.n0c.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Debugging a Node.js, Ruby or Python Application","description":"Debuging a Node.js, Ruby or Python application in development mode when the error \"We're sorry, but something went wrong\" is displayed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/","og_locale":"en_US","og_type":"article","og_title":"Debugging a Node.js, Ruby or Python Application","og_description":"Debuging a Node.js, Ruby or Python application in development mode when the error \"We're sorry, but something went wrong\" is displayed.","og_url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/","og_site_name":"N0C KB","article_modified_time":"2025-03-04T13:40:39+00:00","og_image":[{"url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/","url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/","name":"Debugging a Node.js, Ruby or Python Application","isPartOf":{"@id":"https:\/\/kb.n0c.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/#primaryimage"},"image":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/#primaryimage"},"thumbnailUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png","datePublished":"2022-04-05T16:21:29+00:00","dateModified":"2025-03-04T13:40:39+00:00","description":"Debuging a Node.js, Ruby or Python application in development mode when the error \"We're sorry, but something went wrong\" is displayed.","breadcrumb":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/#primaryimage","url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png","contentUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/kb.n0c.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/kb.n0c.com\/en\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"How to Debug a Node.js, Ruby or Python Application"}]},{"@type":"WebSite","@id":"https:\/\/kb.n0c.com\/#website","url":"https:\/\/kb.n0c.com\/","name":"N0C KB","description":"Official documentation of the N0C hosting platform","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.n0c.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/9270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/comments?post=9270"}],"version-history":[{"count":10,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/9270\/revisions"}],"predecessor-version":[{"id":18525,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/9270\/revisions\/18525"}],"wp:attachment":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/media?parent=9270"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=9270"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=9270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}