angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Debugging in Visual Studio

Open chrstnbrn opened this issue 10 years ago • 9 comments

OS: Windows 10 angular-cli: 1.0.0-beta.17 node: 6.5.0

I have an ASP.NET Core project in Visual Studio which includes an Angular app. The Angular app was not created by angular-cli but I've included it and it is working fine. I'm using ng build to build the application and set my outDir to wwwroot. I can then run my app using IIS Express.

I would like to be able to debug my TypeScript files in Visual Studio. However if I set a breakpoint it is not being hit. I've seen other issues here asking about debugging for Visual Studio Code and WebStorm, so I think there might be a similar solution. Does anyone have an idea how to achieve this in Visual Studio?

chrstnbrn avatar Oct 19 '16 13:10 chrstnbrn

Flagging for community help, I don't have any specific help myself though.

filipesilva avatar Oct 23 '16 16:10 filipesilva

I spent many hours on this and I finally figure it out.

See the post on stackoverflow and the answer.

maxime1992 avatar Nov 06 '16 13:11 maxime1992

@maxime1992 this issue is for Visual Studio, not Visual Studio Code. Configurations for VS Code debugging can be found in https://github.com/angular/angular-cli/issues/2453.

filipesilva avatar Nov 16 '16 17:11 filipesilva

(closed by mistake)

filipesilva avatar Nov 16 '16 17:11 filipesilva

I just tried this again and I am now able to debug my TypeScript files in Visual Studio. I'm using angular-cli 1.0.0-beta.19-3 and am not aware of changing anything else that could be related to debugging.

chrstnbrn avatar Nov 18 '16 12:11 chrstnbrn

@chrstnbrn what steps exactly did you follow to debug it with Visual Studio? (not vs code)

raberana avatar Apr 27 '17 15:04 raberana

@chrstnbrn I would also be interested if you could share your configuration for Visual Studio (not VS Code). Thanks!

rdesimone avatar Apr 30 '17 08:04 rdesimone

@chrstnbrn me too.

challe avatar Aug 23 '17 12:08 challe

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.