Configuring your dev environment to be able to use xdebug when you're working on Windows 10 (with WSL2) and Docker with VS Code can be (a bit) tricky.
This is a quick reminder of how I've done that.
- Install and configure xdebug in Docker
Configuring your dev environment to be able to use xdebug when you're working on Windows 10 (with WSL2) and Docker with VS Code can be (a bit) tricky.
This is a quick reminder of how I've done that.
| # build "clang -framework Foundation ipinfo.m -o ipinfo" remove this line after pasting | |
| #import <Foundation/Foundation.h> | |
| static NSDictionary* fetchIPInfo(void) { | |
| NSURL *url = [NSURL URLWithString:@"https://ipinfo.io/json"]; | |
| NSData *data = [NSData dataWithContentsOfURL:url]; | |
| if (!data) { | |
| NSLog(@"Failed to fetch data"); | |
| return nil; | |
| } |