<?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[Exceptions: Funktionsaufruf verfolgen]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>gibt es eine einfache Möglichkeit, die Funktionsaufrufe bei einer exception zu erfolgen? Also sowas in der Art:</p>
<p>&quot;Fehler: XXXXX in: main() -&gt; Funktion1() -&gt; Funktion2() -&gt; Funktion3()&quot;.</p>
<p>Ich sehe also nicht nur welche Funktion die exception geworfen hat, sondern auch die Funktionen, die diese aufgerufen haben. Ich habe derartiges schon implementiert und es erleichert die Fehlersuche, aber eventuell gibt es etwas besseres bzw. eine native C++ funktion oder ähnliches. In meiner Implementierung habe ich das mit einem einfachen Scope-Guard gelöst, den ich in jede Funktion als Makro hinzufüge. Dieser loggt dann das Eintreten oder Verlassen einer Funktion.</p>
<p>viele Grüße,<br />
SBond</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/338416/exceptions-funktionsaufruf-verfolgen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 15:06:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/338416.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jun 2016 12:31:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exceptions: Funktionsaufruf verfolgen on Tue, 14 Jun 2016 12:32:17 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>gibt es eine einfache Möglichkeit, die Funktionsaufrufe bei einer exception zu erfolgen? Also sowas in der Art:</p>
<p>&quot;Fehler: XXXXX in: main() -&gt; Funktion1() -&gt; Funktion2() -&gt; Funktion3()&quot;.</p>
<p>Ich sehe also nicht nur welche Funktion die exception geworfen hat, sondern auch die Funktionen, die diese aufgerufen haben. Ich habe derartiges schon implementiert und es erleichert die Fehlersuche, aber eventuell gibt es etwas besseres bzw. eine native C++ funktion oder ähnliches. In meiner Implementierung habe ich das mit einem einfachen Scope-Guard gelöst, den ich in jede Funktion als Makro hinzufüge. Dieser loggt dann das Eintreten oder Verlassen einer Funktion.</p>
<p>viele Grüße,<br />
SBond</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2498798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2498798</guid><dc:creator><![CDATA[SBond]]></dc:creator><pubDate>Tue, 14 Jun 2016 12:32:17 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions: Funktionsaufruf verfolgen on Tue, 14 Jun 2016 13:29:23 GMT]]></title><description><![CDATA[<p><a href="http://www.di.unipi.it/~nids/docs/i_want_my_pony_or_why_you_cannot_have_cpp_exceptions_with_a_stack_trace.html" rel="nofollow">I want my pony! Or why you cannot have C++ exceptions with a stack trace</a> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
<p>Für spezielle Compiler (bzw. Umgebungen) gibt es aber Möglichkeiten, z.B. <a href="https://panthema.net/2008/0901-stacktrace-demangled/" rel="nofollow">C++ Code Snippet - Print Stack Backtrace Programmatically with Demangled Function Names</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2498807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2498807</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Tue, 14 Jun 2016 13:29:23 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions: Funktionsaufruf verfolgen on Tue, 14 Jun 2016 15:39:23 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p><a href="http://www.di.unipi.it/~nids/docs/i_want_my_pony_or_why_you_cannot_have_cpp_exceptions_with_a_stack_trace.html" rel="nofollow">I want my pony! Or why you cannot have C++ exceptions with a stack trace</a> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
</blockquote>
<p>Boah, den Artikel würde ich nicht verlinken.<br />
Hat zwar nen coolen Titel, aber ist voll von Halbwissen/Urban-Legends/Quatsch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2498837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2498837</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 14 Jun 2016 15:39:23 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions: Funktionsaufruf verfolgen on Wed, 15 Jun 2016 15:57:22 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p>Für spezielle Compiler (bzw. Umgebungen) gibt es aber Möglichkeiten</p>
</blockquote>
<p>Für MSVC: <a href="http://www.codeproject.com/Articles/11132/Walking-the-callstack" rel="nofollow">http://www.codeproject.com/Articles/11132/Walking-the-callstack</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2498940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2498940</guid><dc:creator><![CDATA[Shade Of Mine]]></dc:creator><pubDate>Wed, 15 Jun 2016 15:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions: Funktionsaufruf verfolgen on Wed, 15 Jun 2016 17:30:04 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p>Boah, den Artikel würde ich nicht verlinken.<br />
Hat zwar nen coolen Titel, aber ist voll von Halbwissen/Urban-Legends/Quatsch.</p>
</blockquote>
<p>Darum ja auch der Smiley <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2498950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2498950</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Wed, 15 Jun 2016 17:30:04 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions: Funktionsaufruf verfolgen on Wed, 15 Jun 2016 18:59:56 GMT]]></title><description><![CDATA[<p>Ja &quot;stacktrace&quot; ist quasi das Stichwort, das ich gesucht hatte. Soweit ist jetzt alles klaro <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2498968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2498968</guid><dc:creator><![CDATA[SBond]]></dc:creator><pubDate>Wed, 15 Jun 2016 18:59:56 GMT</pubDate></item></channel></rss>