Do you already suspect where this problem occurred in your code? For a full list of the tools, see For additional information related to Debugging Tools for Windows, see Now here’s the magic: You can place breakpoints in the decompiled code itself. What happened instead?If you ran into an error (exception) while running your app, that can be a good thing!

It helps to clarify the problem that you ran into before you try to fix it. For more information about creating and using symbol files, see If Windows stops working and displays a blue screen, the computer has shut down abruptly to protect itself from data loss and displays a bug check code. We expect that you already ran into a problem in your code, otherwise you wouldn't be here trying to figure out how to debug it! Debug C++ in Visual Studio Code. Fixing bugs and errors in your code can be a time-consuming--and sometimes frustrating--task. When these breakpoints hit, you’ll see local variables, threads, call stack, and have a full debugging experience. After you have set up the basics of your debugging environment as specified in the configuration tutorials for each target compiler/platform, you can learn more details about debugging C/C++ in this section. /****************************************************************************** Dies wird nicht unterstützt, es sei denn, Sie fügen expliziten Code hinzu, um die Konvertierung vorzunehmen.When you hover over the squiggle, you see that the code is trying to convert a string to an int, which is not supported unless you add explicit code to make the conversion.Da das Codeanalysetool Ihre Absicht nicht erraten kann, sind in diesem Fall keine Glühbirnen zu sehen, um Ihnen Unterstützung zu bieten.Because the code analyzer can't guess your intent, there are no light bulbs to help you out this time.Sie müssen die Absicht des Codes kennen, um diesen Fehler zu beheben.To fix this error, you need to know the intent of the code.In diesem Beispiel ist es nicht allzu schwer zu erkennen, dass Die roten Wellenlinien im Code-Editor verschwinden.Zeigen Sie dann auf die grüne Wellenlinie in der Deklaration des Next, hover over the green squiggle in the declaration of the Das Codeanalysetool zeigt Ihnen an, dass der Variablen nie ein Wert zugewiesen wird.The code analyzer tells you the variable is never assigned a value.In der Regel ist dies ein Problem, das behoben werden muss.Typically, this represents a problem that needs to be fixed.Allerdings speichern Sie in der Beispiel-App während des Deserialisierungsprozesses tatsächlich Daten in der However, in the sample app you are in fact storing data in the In diesem Beispiel kennen Sie die Absicht des Codes und können die Warnung gefahrlos ignorieren.In this example, you know the intent of the code and can safely ignore the warning.Wenn Sie die Warnung jedoch vermeiden möchten, können Sie den folgenden Code ersetzen:However, if you want to eliminate the warning, you can replace the following code:Wenn Sie alle roten Wellenlinien behoben und korrigiert oder zumindest alle grünen Wellenlinien untersucht haben, können Sie den Debugger starten und die App ausführen.When you have fixed all the red squiggles and resolved--or at least investigated--all the green squiggles, you are ready to start the debugger and run the app.Das heißt, die App wählt die Daten aus, die Sie serialisieren möchten.That is, the app chokes on the data that it is trying to serialize.Da Sie die App im Debugmodus (Debugger angefügt) gestartet haben, führt Sie die Ausnahmen-Hilfe des Debuggers direkt zu dem Code, der die Ausnahme ausgelöst hat, und gibt Ihnen eine hilfreiche Fehlermeldung.Because you started the app in debug mode (debugger attached), the debugger's Exception Helper takes you right to the code that threw the exception and gives you a helpful error message.Die Fehlermeldung weist Sie darauf hin, dass der Wert Sie wissen, dass die Daten in diesem Beispiel schlecht sind: Was tun Sie aber damit, wenn Sie in einem realen Szenario nicht die Kontrolle über die Daten haben (wenn Sie diese beispielsweise von einem Webdienst erhalten)?However, if you are not in control of the data in a real scenario (say you are getting it from a web service), what do you do about it?Wenn eine Ausnahme auftritt, müssen Sie eine Reihe von Fragen stellen (und beantworten):When you hit an exception, you need to ask (and answer) a couple of questions:Handelt es sich bei dieser Ausnahme um einen Fehler, den Sie beheben können?Is this exception something that your users might encounter?