<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Stacktrace for Cloud Code errors?]]></title><description><![CDATA[<p dir="auto">Is there a way to get a full stacktrace for errors?</p>
<p dir="auto">Especially when using bridge.include,  it is possible to have deeply nested logic which makes it very difficult to track down the code path that caused the errors.</p>
<p dir="auto">I have some code that works locally (node.js env), but not in Rhino, it seems:</p>
<pre><code>const Assert = {}; 

function stackTrace() {
    var err = new Error();
    return err.stack;
}
Assert.assert = function(expr, message){
    if ( !expr ){
        console.log(stackTrace());
        throw message;
    }
};
</code></pre>
<p dir="auto">Thanks,<br />
Travis</p>
]]></description><link>https://forums.getbraincloud.com/topic/113/stacktrace-for-cloud-code-errors</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 17:00:02 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/113.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Nov 2020 03:10:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stacktrace for Cloud Code errors? on Wed, 01 Dec 2021 03:43:55 GMT]]></title><description><![CDATA[<p dir="auto">Well - the new release isn't out yet - it's just a Release Candidate.</p>
<p dir="auto"><a href="https://github.com/mozilla/rhino/releases" rel="nofollow ugc">https://github.com/mozilla/rhino/releases</a></p>
<p dir="auto">That said - we are very happy to see the progress - since it has been over a year since 1.7.13 was released!</p>
<p dir="auto">Hopefully soon!</p>
]]></description><link>https://forums.getbraincloud.com/post/429</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/429</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Wed, 01 Dec 2021 03:43:55 GMT</pubDate></item><item><title><![CDATA[Reply to Stacktrace for Cloud Code errors? on Wed, 01 Dec 2021 03:36:48 GMT]]></title><description><![CDATA[<p dir="auto">I was just looking into this the other day, too! Like most issues in cloud script, it's a Rhino issue - you never know what isn't fully implemented, and the lacking IDE features doesn't let you know.</p>
<p dir="auto">What I did was ghetto, but it worked. In every script, I make an array that tracks stacktrace, then I try/catch everything. I rethrow until I get to my main func, where I funnel it to an err handler.</p>
<blockquote>
<p dir="auto">It looks like the next Rhino release may have some extra support for us there. We will look to enable it once it's available.</p>
</blockquote>
<p dir="auto">The new Rhino release (already out) will even add <code>${}</code> templating and backtick support~</p>
]]></description><link>https://forums.getbraincloud.com/post/428</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/428</guid><dc:creator><![CDATA[dhpt]]></dc:creator><pubDate>Wed, 01 Dec 2021 03:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to Stacktrace for Cloud Code errors? on Wed, 13 Oct 2021 06:20:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forums.getbraincloud.com/uid/5">@Paul-Winterhalder</a> fingers crossed</p>
]]></description><link>https://forums.getbraincloud.com/post/419</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/419</guid><dc:creator><![CDATA[Ali Raza]]></dc:creator><pubDate>Wed, 13 Oct 2021 06:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to Stacktrace for Cloud Code errors? on Tue, 12 Oct 2021 20:20:43 GMT]]></title><description><![CDATA[<p dir="auto">It looks like the next Rhino release may have some extra support for us there. We will look to enable it once it's available.</p>
]]></description><link>https://forums.getbraincloud.com/post/417</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/417</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Tue, 12 Oct 2021 20:20:43 GMT</pubDate></item><item><title><![CDATA[Reply to Stacktrace for Cloud Code errors? on Wed, 06 Oct 2021 08:32:20 GMT]]></title><description><![CDATA[<p dir="auto">I'm interested in this too! I tried a few things that didn't seem to work. Since there's no "step through" like GameSparks, for example, gotta rely on stacktraces for fast debugging.</p>
<p dir="auto">I find myself devving a bit slow when I have errs due to no stacktraces. Or ... is there a way?</p>
]]></description><link>https://forums.getbraincloud.com/post/415</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/415</guid><dc:creator><![CDATA[dhpt]]></dc:creator><pubDate>Wed, 06 Oct 2021 08:32:20 GMT</pubDate></item></channel></rss>