Debugging of ionic framework's code

I’m trying to debug some issue with ionic framework. So I created an ionic sample project and used npm link method(How to test your NPM package locally - DEV Community) to link my local copy of @ionic/angular, but build is failing because of dependency issue.

here is my deps list for sample project
“dependencies”: {
@angular/animations”: “^17.0.2”,
@angular/common”: “^17.0.2”,
@angular/compiler”: “^17.0.2”,
@angular/core”: “^17.0.2”,
@angular/forms”: “^17.0.2”,
@angular/platform-browser”: “^17.0.2”,
@angular/platform-browser-dynamic”: “^17.0.2”,
@angular/router”: “^17.0.2”,
@ionic/angular”: “file:…/…/ionic-framework/packages/angular”,
“cordova-ios”: “6.3.0”,
“ionicons”: “^7.0.0”,
“rxjs”: “~7.8.0”,
“tslib”: “^2.3.0”,
“zone.js”: “~0.14.2”

how can debug with local copy?