How can i watch global pointer variable root in Visual Studio Code?
Here is the sample:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "pch.h"
#include <iostream>
struct node
{
int data;
struct node *link;
};
struct node *root;
enter debug mode (F5)
Add variable to watch (Right click on *root - Add to watch)
value will be shown in watch window during debug execution
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With