aspnet / JavaScriptServices

[Archived] This repository has been archived
Apache License 2.0
3.03k stars 518 forks source link

Can not debug with server-side prerendering #1323

Closed sakataa closed 7 years ago

sakataa commented 7 years ago

I want to debug boot-server.tsx but can not see original source code for debugging. I follow by docs here: https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#debugging-your-javascripttypescript-code-when-it-runs-on-the-server

Could everyone help me? image

SteveSandersonMS commented 7 years ago

If you look in your webpack.config.js, you'll probably find that SourceMapDevToolPlugin is only used in the clientBundleConfig and not in the serverBundleConfig. It might be sufficent to add SourceMapDevToolPlugin to your serverBundleConfig too.

sakataa commented 7 years ago

hi @SteveSandersonMS, thank for your response. But I still not get original source when debugging. I configured devtool: 'source-map' in webpack config and use reactredux template. Could you please help me?