Skip to content

Debugging Angular code with Visual Studio & ASP.Net Core #9527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dcasbonne opened this issue Feb 6, 2018 · 6 comments
Closed

Debugging Angular code with Visual Studio & ASP.Net Core #9527

dcasbonne opened this issue Feb 6, 2018 · 6 comments

Comments

@dcasbonne
Copy link

dcasbonne commented Feb 6, 2018

Versions

Angular CLI: 1.6.7
Node: 8.9.2
OS: win32 x64 (Windows 10 Pro)
Angular: 5.2.3
@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

Repro steps

  • I've an Angular-CLI project wrapped inside a ASP.Net Core 2.0 project exactly as described here : https://medium.com/@levifuller/building-an-angular-application-with-asp-net-core-in-visual-studio-2017-visualized-f4b163830eaa
    (I have to do that because I've other projects in this applications that requires ASP.Net Core MVC (WebAPI) and it's more efficient to have 1 VS open instead of one VSCode with the Angular project and another VS with the others project)
  • Running "ng serve" from a command line very basically.
  • Project starts, I can debug in the browser but if I set some breakpoints in ts file in VS they wouldn't be hit...

Observed behavior

Breakpoints in Visual Studio (2017) are not hit when set in ts files

Desired behavior

Being able to debug typescript files inside Visual Studio :)

@clydin
Copy link
Member

clydin commented Feb 6, 2018

Information regarding debugging and source maps with vscode can be found in this issue: #2453

@clydin clydin closed this as completed Feb 6, 2018
@dcasbonne
Copy link
Author

I'm not talking about Visual Studio Code, I'm talking about Visual Studio 2017 AND Angular in an ASP.Net Core project.
Would you be kind and re-open this issue please?

@clydin
Copy link
Member

clydin commented Feb 6, 2018

There should hopefully be similar settings within your IDE. If not or other issues arise, please consider opening an issue with your IDE's vendor; or opening a question on a site such as StackOverflow which would be a more appropriate venue for a support request such as this.
As an alternative, you could develop both the ASP.Net Core and angular projects within vscode; it supports both.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

@dcasbonne
Copy link
Author

Oups I'm sorry I wasn't aware of the Code of Conduct here... I'll search again on SO and ask my question if I can find any answer.
Thanks for this explanation and sorry to waste your time for that !

@kilanny
Copy link

kilanny commented Feb 28, 2018

@dcasbonne Hi, did you find the solution for that problem?

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants